mirror of
https://github.com/UberGames/lilium-voyager.git
synced 2024-11-10 06:31:47 +00:00
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
|
||||
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();
|
||||
|
|
Loading…
Reference in a new issue