From 452bdbd052811b5b00daf1844a02dd1444f40b74 Mon Sep 17 00:00:00 2001 From: Allanis Date: Wed, 20 Mar 2013 23:02:33 +0000 Subject: [PATCH] [Change] Death menu will take you back to main menu rather than respawn. --- src/menu.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/menu.c b/src/menu.c index e27cb56..79c51b5 100644 --- a/src/menu.c +++ b/src/menu.c @@ -41,7 +41,7 @@ static void exit_game(void); static void menu_info_close(char* str); static void info_outfits_menu(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) { unsigned int bwid, wid; @@ -221,16 +221,16 @@ void menu_death(void) { unsigned int wid; 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, - "btnNew", "New Game", menu_death_respawn); + "btnMain", "MainMenu", menu_death_main); window_addButton(wid, 20, 20, BUTTON_WIDTH, BUTTON_HEIGHT, "btnExit", "Exit", (void(*)(char*)) exit_game); menu_Open(MENU_DEATH); } -static void menu_death_respawn(char* str) { +static void menu_death_main(char* str) { (void)str; unsigned int wid; @@ -238,6 +238,6 @@ static void menu_death_respawn(char* str) { window_destroy(wid); menu_Close(MENU_DEATH); - player_new(); + menu_main(); }