From eeed424b99210c4e436df1b40a0dace9897619a1 Mon Sep 17 00:00:00 2001 From: davidovski Date: Tue, 23 Apr 2024 14:48:27 +0100 Subject: fix things staying highlighted --- main.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'main.go') diff --git a/main.go b/main.go index 4a3a9ed..90d5f97 100644 --- a/main.go +++ b/main.go @@ -356,6 +356,7 @@ func (g *Game) Update() error { for _, obj := range g.objects { obj.Update(*g.tilemap, g.objects) + obj.highlight = false } g.tilemap.Update() @@ -765,9 +766,6 @@ func (g *Game) SetInGame() { g.player.alpha = 1.0 g.StopRewinding() - for _, object := range g.objects { - object.highlight = false - } } func (g *Game) SetPlacing() { -- cgit v1.2.1