[quake3-commits] r2322 - trunk/code/q3_ui
DONOTREPLY at icculus.org
DONOTREPLY at icculus.org
Sun Sep 30 02:21:08 EDT 2012
Author: ztm
Date: 2012-09-30 02:21:08 -0400 (Sun, 30 Sep 2012)
New Revision: 2322
Modified:
trunk/code/q3_ui/ui_splevel.c
Log:
Fix resetting single player level selection in q3_ui when there is no training level, such as in demoq3.
Modified: trunk/code/q3_ui/ui_splevel.c
===================================================================
--- trunk/code/q3_ui/ui_splevel.c 2012-09-30 03:59:10 UTC (rev 2321)
+++ trunk/code/q3_ui/ui_splevel.c 2012-09-30 06:21:08 UTC (rev 2322)
@@ -368,7 +368,11 @@
// 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();
More information about the quake3-commits
mailing list