X-Git-Url: http://git.scottworley.com/planeteer/blobdiff_plain/1539cc255c90943c2dbb4fa6146cc49b5e31d494..311b26d48114468d26758f2a30b1d794cb324102:/planeteer.go diff --git a/planeteer.go b/planeteer.go index cf68301..67a843d 100644 --- a/planeteer.go +++ b/planeteer.go @@ -426,6 +426,7 @@ func CellValue(data planet_data, dims []int, table []State, addr []int) int32 { } } } + other[Traded] = addr[Traded] } /* Buy a Device of Cloaking */ @@ -647,6 +648,10 @@ func IndexCommodities(m *map[string]Commodity, start_at int) (map[string]int, [] func main() { flag.Parse() + if *start == "" || *funds == 0 { + print("--start and --funds are required. --help for more\n") + return + } if *cpuprofile != "" { f, err := os.Create(*cpuprofile) if err != nil {