diff options
author | davidovski <david@davidovski.xyz> | 2024-04-23 14:48:27 +0100 |
---|---|---|
committer | davidovski <david@davidovski.xyz> | 2024-04-23 14:48:27 +0100 |
commit | eeed424b99210c4e436df1b40a0dace9897619a1 (patch) | |
tree | 7e32b776046dee6cd7873fdd136a65db24611123 | |
parent | 5fe8960b575f5b0216faafe496a2a9927fb1bb9c (diff) |
fix things staying highlighted
-rw-r--r-- | main.go | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -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() { |