wip: generate rest of report
This commit is contained in:
@@ -39,8 +39,11 @@ func (c *Cache) moveShipGroup(i int, delta float64) {
|
||||
}
|
||||
destPlanet := c.MustPlanet(sg.Destination)
|
||||
arrived := false
|
||||
sg.StateInSpace.X, sg.StateInSpace.Y, arrived =
|
||||
var x, y float64
|
||||
x, y, arrived =
|
||||
util.NextTravelCoord(c.g.Map.Width, c.g.Map.Height, originX, originY, destPlanet.X.F(), destPlanet.Y.F(), delta)
|
||||
sg.StateInSpace.X = game.F(x)
|
||||
sg.StateInSpace.Y = game.F(y)
|
||||
if arrived {
|
||||
sg.StateInSpace = nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user