Fix resetting single player level selection in q3_ui when there is no training level, such as in demoq3.
This commit is contained in:
parent
a32dc4dca4
commit
cf30922932
1 changed files with 5 additions and 1 deletions
|
@ -368,7 +368,11 @@ static void UI_SPLevelMenu_ResetAction( qboolean result ) {
|
||||||
|
|
||||||
// clear game variables
|
// clear game variables
|
||||||
UI_NewGame();
|
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
|
// make the level select menu re-initialize
|
||||||
UI_PopMenu();
|
UI_PopMenu();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue