]> git.scottworley.com Git - planeteer/commitdiff
Fix one cargo unit short when eden jumping bug.
authorScott Worley <sworley@chkno.net>
Sat, 26 Nov 2011 10:13:38 +0000 (02:13 -0800)
committerScott Worley <sworley@chkno.net>
Sat, 26 Nov 2011 10:13:38 +0000 (02:13 -0800)
planeteer.go

index d78f7795436bd9c095cebbe5ca92cdd7e94ce835..6c77fc075fafb214cf396ee10cbccfc65bda3e1a 100644 (file)
@@ -348,7 +348,7 @@ func CellValue(data planet_data, dims []int, table []State, addr []int) int32 {
                }
 
                /* Travel here via Eden Warp Unit */
-               if addr[Edens]+1 < dims[Edens] && addr[UnusedCargo] > 1 {
+               if addr[Edens]+1 < dims[Edens] && addr[UnusedCargo] > 0 {
                        _, available := data.Planets[data.i2p[addr[Location]]].RelativePrices["Eden Warp Units"]
                        if !available {
                                other[Edens] = addr[Edens] + 1