[Add] Cute feature, game doesn't pause with death menu.
This commit is contained in:
parent
1edbf5b944
commit
4eca6815bc
@ -20,6 +20,7 @@
|
||||
#include "land.h"
|
||||
#include "rng.h"
|
||||
#include "nebulae.h"
|
||||
#include "pause.h"
|
||||
#include "menu.h"
|
||||
|
||||
#define MAIN_WIDTH 130 /**< Main menu width. */
|
||||
@ -623,6 +624,9 @@ void menu_death(void) {
|
||||
"btnExit", "Exit Game", (void(*)(char*)) exit_game);
|
||||
|
||||
menu_Open(MENU_DEATH);
|
||||
|
||||
/* Make it all look cooler since everything still runs. */
|
||||
unpause_game();
|
||||
}
|
||||
|
||||
/**
|
||||
@ -639,6 +643,7 @@ static void menu_death_main(char* str) {
|
||||
window_destroy(wid);
|
||||
menu_Close(MENU_DEATH);
|
||||
|
||||
/* Game will repause now since toolkit closes and reopens. */
|
||||
menu_main();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user