X-Git-Url: http://git.scottworley.com/planeteer/blobdiff_plain/58c3880d618ba797aba4e17e9feceb5dd9c24d34..35e3c4244a4558c9b7f4b3942e9b004c55c194d9:/planeteer.go diff --git a/planeteer.go b/planeteer.go index 6c8f087..1074e92 100644 --- a/planeteer.go +++ b/planeteer.go @@ -399,7 +399,7 @@ func CellValue(data planet_data, dims LogicalIndex, table []State, addr LogicalI } /* Travel here via Eden Warp Unit */ - if addr[Edens]+1 < dims[Edens] && addr[UnusedCargo] > 0 { + if addr[Edens]+1 < dims[Edens] && (addr[Hold] == 0 || addr[UnusedCargo] > 0) { _, available := data.Planets[data.i2p[addr[Location]]].RelativePrices["Eden Warp Units"] if !available { other[Edens] = addr[Edens] + 1