diff options
Diffstat (limited to 'go')
| -rw-r--r-- | go/client/game.go | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/go/client/game.go b/go/client/game.go index 37e44d77..8d7fa74b 100644 --- a/go/client/game.go +++ b/go/client/game.go @@ -507,9 +507,6 @@ func (g *Game) updateHighlight() { func (g *Game) Update() error { g.handlePlayerNotifications() - g.updateHighlight() - g.updatePassButton() - if inpututil.IsMouseButtonJustPressed(ebiten.MouseButtonLeft) { x, y := ebiten.CursorPosition() obj := g.findObjectAt(x, y) @@ -540,7 +537,14 @@ func (g *Game) Update() error { } } - return g.Collection.Update() + if err := g.Collection.Update(); err != nil { + return err + } + + g.updateHighlight() + g.updatePassButton() + return nil + } func (g *Game) Draw(screen *ebiten.Image) { |
