[quake3-commits] r1949 - in trunk/code: game renderer

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Tue Apr 26 05:48:40 EDT 2011


Author: thilo
Date: 2011-04-26 05:48:40 -0400 (Tue, 26 Apr 2011)
New Revision: 1949

Modified:
   trunk/code/game/ai_main.h
   trunk/code/renderer/tr_main.c
Log:
Replace a few numeric constants with already defined macros, patch by ZTurtleMan


Modified: trunk/code/game/ai_main.h
===================================================================
--- trunk/code/game/ai_main.h	2011-04-26 02:32:05 UTC (rev 1948)
+++ trunk/code/game/ai_main.h	2011-04-26 09:48:40 UTC (rev 1949)
@@ -128,7 +128,7 @@
 	playerState_t cur_ps;							//current player state
 	int last_eFlags;								//last ps flags
 	usercmd_t lastucmd;								//usercmd from last frame
-	int entityeventTime[1024];						//last entity event time
+	int entityeventTime[MAX_GENTITIES];				//last entity event time
 	//
 	bot_settings_t settings;						//several bot settings
 	int (*ainode)(struct bot_state_s *bs);			//current AI node

Modified: trunk/code/renderer/tr_main.c
===================================================================
--- trunk/code/renderer/tr_main.c	2011-04-26 02:32:05 UTC (rev 1948)
+++ trunk/code/renderer/tr_main.c	2011-04-26 09:48:40 UTC (rev 1949)
@@ -1128,7 +1128,7 @@
 					 int *fogNum, int *dlightMap ) {
 	*fogNum = ( sort >> QSORT_FOGNUM_SHIFT ) & 31;
 	*shader = tr.sortedShaders[ ( sort >> QSORT_SHADERNUM_SHIFT ) & (MAX_SHADERS-1) ];
-	*entityNum = ( sort >> QSORT_ENTITYNUM_SHIFT ) & 1023;
+	*entityNum = ( sort >> QSORT_ENTITYNUM_SHIFT ) & (MAX_GENTITIES-1);
 	*dlightMap = sort & 3;
 }
 



More information about the quake3-commits mailing list