From 5224fdc80913597287a5f67efec5d0be3254ce59 Mon Sep 17 00:00:00 2001 From: Martin Kagamino Lehoux Date: Fri, 4 Jul 2025 23:05:42 +0200 Subject: Fmt --- main.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'main.go') diff --git a/main.go b/main.go index 5eb330e..b521616 100644 --- a/main.go +++ b/main.go @@ -35,7 +35,7 @@ type Game struct { Selection GlobalSelection } -func DrawMove(screen *ebiten.Image, e *Entity) { +func DrawMove(screen *ebiten.Image, e *Entity) { if e.Move.IsEnabled && e.Position.IsEnabled && e.Selection.IsEnabled { if e.Selection.Value.IsSelected && e.Move.Value.IsActive { last := e.Position.Value @@ -96,7 +96,7 @@ func (g *Game) updateSelecting(cursor physics.Point, moveMap physics.MoveMap) { if entityAtDestination != nil && entityAtDestination.ResourceSource.IsEnabled { Gather(e, entityAtDestination, g) } else { - physics.StartMove(&e.Move,e.Position, destination, moveMap) + physics.StartMove(&e.Move, e.Position, destination, moveMap) } } } @@ -147,7 +147,7 @@ func (g *Game) Update() error { g.updatePatrolling(cursor) } for _, e := range g.Entities { - physics.UpdateMove(&e.Move,&e.Position, moveMap) + physics.UpdateMove(&e.Move, &e.Position, moveMap) e.UpdateOrder(g) } return nil -- cgit v1.3