]> git.lizzy.rs Git - nothing.git/commitdiff
(#1189) Reset cursor style on switching game state
authorgooddoog <gooddoog@student.su>
Mon, 23 Dec 2019 19:39:31 +0000 (22:39 +0300)
committergooddoog <gooddoog@student.su>
Mon, 23 Dec 2019 19:39:31 +0000 (22:39 +0300)
src/game.c

index 43767df50fe8914ad06366b44111708f0659d9b7..f9bba030609eb8548f6effee86b79fedfbd7d27b 100644 (file)
@@ -40,6 +40,7 @@ typedef struct Game {
 
 void game_switch_state(Game *game, Game_state state)
 {
+    game->cursor.style = CURSOR_STYLE_POINTER;
     if (state == GAME_STATE_LEVEL_PICKER) {
         level_picker_clean_selection(&game->level_picker);
     }