Skip to content

Commit

Permalink
Fix a bug where game-scene mouse-key-released is incorrectly handled …
Browse files Browse the repository at this point in the history
…by non-game-scene

Better coverage
  • Loading branch information
casavaca committed Jan 16, 2024
1 parent b5bd31e commit 37dfe32
Show file tree
Hide file tree
Showing 2 changed files with 2,494 additions and 1,989 deletions.
2 changes: 1 addition & 1 deletion src/game_gui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ bool ProcessGuiEvent(GameEvent e, Sokoban& game) {
// which mayn result the user clicking some button without
// their intention.
if (IsMouseButtonDown(MOUSE_LEFT_BUTTON) ||
IsMouseButtonDown(MOUSE_RIGHT_BUTTON))
IsMouseButtonReleased(MOUSE_LEFT_BUTTON))
break;
SetGameScene(LEVEL_FINISHED_SCENE);
} break;
Expand Down
Loading

0 comments on commit 37dfe32

Please sign in to comment.