[Change] Death menu will take you back to main menu rather than respawn.

This commit is contained in:
Allanis 2013-03-20 23:02:33 +00:00
parent 353922fd3b
commit 452bdbd052

View File

@ -41,7 +41,7 @@ static void exit_game(void);
static void menu_info_close(char* str); static void menu_info_close(char* str);
static void info_outfits_menu(char* str); static void info_outfits_menu(char* str);
static void info_outfits_menu_close(char* str); static void info_outfits_menu_close(char* str);
static void menu_death_respawn(char* str); static void menu_death_main(char* str);
void menu_main(void) { void menu_main(void) {
unsigned int bwid, wid; unsigned int bwid, wid;
@ -221,16 +221,16 @@ void menu_death(void) {
unsigned int wid; unsigned int wid;
wid = window_create("Death", -1, -1, DEATH_WIDTH, DEATH_HEIGHT); wid = window_create("Death", -1, -1, DEATH_WIDTH, DEATH_HEIGHT);
window_addButton(wid, 20, 20 + BUTTON_HEIGHT + 20, window_addButton(wid, 20, 20 + (BUTTON_HEIGHT + 20),
BUTTON_WIDTH, BUTTON_HEIGHT, BUTTON_WIDTH, BUTTON_HEIGHT,
"btnNew", "New Game", menu_death_respawn); "btnMain", "MainMenu", menu_death_main);
window_addButton(wid, 20, 20, BUTTON_WIDTH, BUTTON_HEIGHT, window_addButton(wid, 20, 20, BUTTON_WIDTH, BUTTON_HEIGHT,
"btnExit", "Exit", (void(*)(char*)) exit_game); "btnExit", "Exit", (void(*)(char*)) exit_game);
menu_Open(MENU_DEATH); menu_Open(MENU_DEATH);
} }
static void menu_death_respawn(char* str) { static void menu_death_main(char* str) {
(void)str; (void)str;
unsigned int wid; unsigned int wid;
@ -238,6 +238,6 @@ static void menu_death_respawn(char* str) {
window_destroy(wid); window_destroy(wid);
menu_Close(MENU_DEATH); menu_Close(MENU_DEATH);
player_new(); menu_main();
} }