summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2024-04-23 14:48:27 +0100
committerdavidovski <david@davidovski.xyz>2024-04-23 14:48:27 +0100
commiteeed424b99210c4e436df1b40a0dace9897619a1 (patch)
tree7e32b776046dee6cd7873fdd136a65db24611123
parent5fe8960b575f5b0216faafe496a2a9927fb1bb9c (diff)
fix things staying highlighted
-rw-r--r--main.go4
1 files changed, 1 insertions, 3 deletions
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() {