[Fix] Ensure the game will pause when opening the pilot information window.
This commit is contained in:
parent
efe9970854
commit
ff217f68d6
@ -35,6 +35,7 @@ static void info_menu_close(char* str);
|
||||
// Small ingame menu.
|
||||
void menu_small(void) {
|
||||
if(menu_isOpen(MENU_SMALL)) return; // It's already open..
|
||||
pause();
|
||||
|
||||
unsigned int wid;
|
||||
|
||||
@ -49,7 +50,6 @@ void menu_small(void) {
|
||||
BUTTON_WIDTH, BUTTON_HEIGHT,
|
||||
"btnResume", "Resume", menu_small_close);
|
||||
|
||||
pause();
|
||||
menu_Open(MENU_SMALL);
|
||||
}
|
||||
|
||||
@ -76,6 +76,7 @@ static void exit_game(void) {
|
||||
// Info menu.
|
||||
void info_menu(void) {
|
||||
if(menu_isOpen(MENU_INFO)) return;
|
||||
pause();
|
||||
|
||||
char str[128];;
|
||||
unsigned int wid;
|
||||
@ -121,5 +122,6 @@ static void info_menu_close(char* str) {
|
||||
window_destroy(window_get("Info"));
|
||||
|
||||
menu_Close(MENU_INFO);
|
||||
unpause();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user