Fix resetting single player level selection in q3_ui when there is no training level, such as in demoq3.

This commit is contained in:
Zack Middleton 2012-09-30 06:21:08 +00:00
parent a32dc4dca4
commit cf30922932
1 changed files with 5 additions and 1 deletions

View File

@ -368,7 +368,11 @@ static void UI_SPLevelMenu_ResetAction( qboolean result ) {
// clear game variables
UI_NewGame();
trap_Cvar_SetValue( "ui_spSelection", -4 );
if ( UI_GetSpecialArenaInfo( "training" ) ) {
trap_Cvar_SetValue( "ui_spSelection", -4 );
} else {
trap_Cvar_SetValue( "ui_spSelection", 0 );
}
// make the level select menu re-initialize
UI_PopMenu();