X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=menu.h;h=b69345659642f2bdf9c589fd1e37d7e64c8c5f77;hb=be8ea6efdbfd9c0fdad97401ed7d92041d8c8778;hp=7a008468802d1775848fdf358c48ec8002db9a41;hpb=f99902f513b0ad606437bf32de47405dd4ea5f98;p=carveJwlIkooP6JGAAIwe30JlM.git diff --git a/menu.h b/menu.h index 7a00846..b693456 100644 --- a/menu.h +++ b/menu.h @@ -110,7 +110,7 @@ VG_STATIC int menu_vis( struct menu_btn_userdata ud ) VG_STATIC int menu_controller( struct menu_btn_userdata ud ) { if( (game_menu.page & (k_menu_page_main|k_menu_page_settings)) - && (ud.i == menu_display_controller) ) + && (ud.i == steam_display_controller) ) return 1; return 0; } @@ -118,7 +118,7 @@ VG_STATIC int menu_controller( struct menu_btn_userdata ud ) VG_STATIC int menu_controller_inf( struct menu_btn_userdata ud ) { if( (game_menu.page & k_menu_page_settings) - && (ud.i == menu_display_controller) ) + && (ud.i == steam_display_controller) ) return 1; return 0; } @@ -218,16 +218,16 @@ VG_STATIC menu_buttons[] = { "res_info", menu_vis, {k_menu_page_settings}, }, -{ "ctr_xbox", menu_controller_inf, {k_menu_controller_type_xbox}}, -{ "ctr_xbox_text", menu_controller_inf, {k_menu_controller_type_xbox}}, -{ "ctr_steam", menu_controller_inf, {k_menu_controller_type_steam}}, -{ "ctr_steam_text", menu_controller_inf, {k_menu_controller_type_steam}}, -{ "ctr_deck", menu_controller_inf, {k_menu_controller_type_steam_deck}}, -{ "ctr_deck_text", menu_controller_inf, {k_menu_controller_type_steam_deck}}, -{ "ctr_ps", menu_controller_inf, {k_menu_controller_type_playstation}}, -{ "ctr_ps_text", menu_controller_inf, {k_menu_controller_type_playstation}}, -{ "ctr_kbm", menu_controller_inf, {k_menu_controller_type_keyboard}}, -{ "ctr_kbm_text", menu_controller_inf, {k_menu_controller_type_keyboard}}, +{ "ctr_xbox", menu_controller_inf, {k_steam_controller_type_xbox}}, +{ "ctr_xbox_text", menu_controller_inf, {k_steam_controller_type_xbox}}, +{ "ctr_steam", menu_controller_inf, {k_steam_controller_type_steam}}, +{ "ctr_steam_text", menu_controller_inf, {k_steam_controller_type_steam}}, +{ "ctr_deck", menu_controller_inf, {k_steam_controller_type_steam_deck}}, +{ "ctr_deck_text", menu_controller_inf, {k_steam_controller_type_steam_deck}}, +{ "ctr_ps", menu_controller_inf, {k_steam_controller_type_playstation}}, +{ "ctr_ps_text", menu_controller_inf, {k_steam_controller_type_playstation}}, +{ "ctr_kbm", menu_controller_inf, {k_steam_controller_type_keyboard}}, +{ "ctr_kbm_text", menu_controller_inf, {k_steam_controller_type_keyboard}}, { "text_paused", menu_vis, {k_menu_page_main} }, @@ -243,10 +243,9 @@ VG_STATIC int menu_get_loc( const char *loc ) return 0; } -VG_STATIC int __respawn( int argc, const char *argv[] ); VG_STATIC void menu_btn_reset( int event ) { - __respawn(0,NULL); + localplayer_cmd_respawn( 0, NULL ); cl_menu_go_away = 1; game_menu.page = 0; } @@ -641,8 +640,6 @@ VG_STATIC void menu_page_settings(void) } } -player_instance *tmp_localplayer(void); - VG_STATIC void menu_update(void) { vg_input_update( 1, &input_menu_h ); @@ -688,7 +685,7 @@ VG_STATIC void menu_update(void) /* Base */ { - player_instance *player = tmp_localplayer(); + player_instance *player = &localplayer; struct player_avatar *av = player->playeravatar; v3f center_rough;