[quake3-commits] r1902 - trunk/code/ui
DONOTREPLY at icculus.org
DONOTREPLY at icculus.org
Fri Mar 4 15:23:29 EST 2011
Author: thilo
Date: 2011-03-04 15:23:29 -0500 (Fri, 04 Mar 2011)
New Revision: 1902
Modified:
trunk/code/ui/ui_main.c
Log:
(#4918) Gametype clamping using constant integer in missionpack ui, by Zack Middleton
Modified: trunk/code/ui/ui_main.c
===================================================================
--- trunk/code/ui/ui_main.c 2011-03-04 20:20:43 UTC (rev 1901)
+++ trunk/code/ui/ui_main.c 2011-03-04 20:23:29 UTC (rev 1902)
@@ -2776,7 +2776,7 @@
}
trap_Cvar_SetValue( "singleplayer", 1 );
- trap_Cvar_SetValue( "g_gametype", Com_Clamp( 0, 7, tierList[i].gameTypes[j] ) );
+ trap_Cvar_SetValue( "g_gametype", Com_Clamp( 0, GT_MAX_GAME_TYPE-1, tierList[i].gameTypes[j] ) );
trap_Cmd_ExecuteText( EXEC_APPEND, va( "wait ; wait ; map %s\n", tierList[i].maps[j] ) );
skill = trap_Cvar_VariableValue( "g_spSkill" );
@@ -3160,7 +3160,7 @@
trap_Cvar_Set("cg_cameraOrbit", "0");
trap_Cvar_Set("ui_singlePlayerActive", "0");
trap_Cvar_SetValue( "dedicated", Com_Clamp( 0, 2, ui_dedicated.integer ) );
- trap_Cvar_SetValue( "g_gametype", Com_Clamp( 0, 8, uiInfo.gameTypes[ui_netGameType.integer].gtEnum ) );
+ trap_Cvar_SetValue( "g_gametype", Com_Clamp( 0, GT_MAX_GAME_TYPE-1, uiInfo.gameTypes[ui_netGameType.integer].gtEnum ) );
trap_Cvar_Set("g_redTeam", UI_Cvar_VariableString("ui_teamName"));
trap_Cvar_Set("g_blueTeam", UI_Cvar_VariableString("ui_opponentName"));
trap_Cmd_ExecuteText( EXEC_APPEND, va( "wait ; wait ; map %s\n", uiInfo.mapList[ui_currentNetMap.integer].mapLoadName ) );
More information about the quake3-commits
mailing list