refactor: float64 types for storage and report
This commit is contained in:
@@ -40,7 +40,7 @@ func (c *Cache) moveShipGroup(i int, delta float64) {
|
||||
destPlanet := c.MustPlanet(sg.Destination)
|
||||
arrived := false
|
||||
sg.StateInSpace.X, sg.StateInSpace.Y, arrived =
|
||||
util.NextTravelCoord(c.g.Map.Width, c.g.Map.Height, originX, originY, destPlanet.X, destPlanet.Y, delta)
|
||||
util.NextTravelCoord(c.g.Map.Width, c.g.Map.Height, originX, originY, destPlanet.X.F(), destPlanet.Y.F(), delta)
|
||||
if arrived {
|
||||
sg.StateInSpace = nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user