diff options
| author | Florian Fischer <florian.fischer@muhq.space> | 2025-08-06 15:18:16 +0200 |
|---|---|---|
| committer | Florian Fischer <florian.fischer@muhq.space> | 2025-08-06 15:18:16 +0200 |
| commit | 0cff8c7704187224053a068a1b3a6c166ddfdd6d (patch) | |
| tree | 7bace6881419c10e8ac60ff1d176021b711bd539 | |
| parent | bd6362cb92c9105a36ed900cfbaafa2b2ee81ab8 (diff) | |
| download | muhqs-game-0cff8c7704187224053a068a1b3a6c166ddfdd6d.tar.gz muhqs-game-0cff8c7704187224053a068a1b3a6c166ddfdd6d.zip | |
remove choice if it was not selected
| -rw-r--r-- | go/client/game.go | 3 |
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 && |
