mirror of
https://gitlab.com/dosowisko.net/libsuperderpy.git
synced 2025-02-01 11:06:44 +01:00
don't restart the game if video settings are changed during game
This commit is contained in:
parent
e874678081
commit
2a16055a6b
1 changed files with 4 additions and 0 deletions
|
@ -28,6 +28,10 @@ int Pause_Keydown(struct Game *game, ALLEGRO_EVENT *ev) {
|
|||
game->menu.menustate=MENUSTATE_PAUSE;
|
||||
game->menu.selected=0;
|
||||
PrintConsole(game, "menu state changed %d", game->menu.menustate);
|
||||
} else if ((game->menu.menustate==MENUSTATE_VIDEO) && ((ev->keyboard.keycode==ALLEGRO_KEY_ESCAPE) || ((ev->keyboard.keycode==ALLEGRO_KEY_ENTER) && (game->menu.selected==3)))) {
|
||||
game->menu.menustate=MENUSTATE_OPTIONS;
|
||||
game->menu.selected=0;
|
||||
PrintConsole(game, "menu state changed %d", game->menu.menustate);
|
||||
} else return Menu_Keydown(game, ev);
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue