aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fischer@muhq.space>2025-08-06 15:18:16 +0200
committerFlorian Fischer <florian.fischer@muhq.space>2025-08-20 15:57:34 +0200
commit3fa176d181872c278db4133a097d721be7e9f32e (patch)
tree18a477ed9b4b97c2214ecfa4e504464988853a8a
parentf21eed02a2d0ac4184976589be48f69bf3345b66 (diff)
downloadmuhqs-game-3fa176d181872c278db4133a097d721be7e9f32e.tar.gz
muhqs-game-3fa176d181872c278db4133a097d721be7e9f32e.zip
remove choice if it was not selected
-rw-r--r--go/client/game.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/go/client/game.go b/go/client/game.go
index d027f07c..d525a49c 100644
--- a/go/client/game.go
+++ b/go/client/game.go
@@ -570,6 +570,9 @@ func (g *Game) handleSelection(obj any, x, y int) {
return
}
+ // Remove the choice since it is not clicked
+ g.removeChoice()
+
switch obj := obj.(type) {
case *game.Tile:
if g.storesOnMap && obj.Type == game.TileTypes.Store &&