X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=menu.h;h=fcf2da4c28a6abb47855a82f212f9962b9abccf9;hb=302b008f2298f54a95a5c5e0b46f2f573b49bb8e;hp=b8f509e7e4d805a466250edd107a593c726088e0;hpb=02e009ae6e20938675277e9ce2f467e17b170cc7;p=carveJwlIkooP6JGAAIwe30JlM.git diff --git a/menu.h b/menu.h index b8f509e..fcf2da4 100644 --- a/menu.h +++ b/menu.h @@ -206,13 +206,23 @@ static void menu_trigger_item( ent_menuitem *item ) if( MDL_CONST_PSTREQ( &menu.model, q, "quit" ) ){ vg.window_should_close = 1; } - else if( MDL_CONST_PSTREQ( &menu.model, q, "reset" ) ){ + else if( MDL_CONST_PSTREQ( &menu.model, q, "reset_nearest" ) ){ localplayer_cmd_respawn( 0, NULL ); menu.page_depth = 0; menu.active = 0; menu.page = 0xffffffff; } + else if( MDL_CONST_PSTREQ( &menu.model, q, "reset_home" ) ){ + world_static.active_world = 0; + world_static.active_trigger_volume_count = 0; + localplayer.viewable_world = world_current_instance(); + localplayer_cmd_respawn( 1, (const char *[]){"start"} ); + + menu.page_depth = 0; + menu.active = 0; + menu.page = 0xffffffff; + } else if( MDL_CONST_PSTREQ( &menu.model, q, "credits" ) ){ menu.credits_open = 1; }