Ensure weapon adjustment is applied when resetting to defaults

This commit is contained in:
Petr Bartos 2023-04-14 20:59:41 +02:00
parent fada09a0bb
commit 32c4e6eac1

View file

@ -6519,6 +6519,11 @@ void UI_ResetDefaults( void )
ui.Cmd_ExecuteText( EXEC_APPEND, "cvar_restart\n"); ui.Cmd_ExecuteText( EXEC_APPEND, "cvar_restart\n");
Controls_SetDefaults(); Controls_SetDefaults();
ui.Cmd_ExecuteText( EXEC_APPEND, "exec default.cfg\n"); ui.Cmd_ExecuteText( EXEC_APPEND, "exec default.cfg\n");
#ifdef JK2_MODE
ui.Cmd_ExecuteText( EXEC_APPEND, "exec weapons_vr_jo.cfg\n");
#else
ui.Cmd_ExecuteText( EXEC_APPEND, "exec weapons_vr_ja.cfg\n");
#endif
ui.Cmd_ExecuteText( EXEC_APPEND, "vid_restart\n" ); ui.Cmd_ExecuteText( EXEC_APPEND, "vid_restart\n" );
} }