From 7b1b5345d52c3bf77757a6c50d155faa46f3afcf Mon Sep 17 00:00:00 2001 From: Richard Allen Date: Mon, 27 Jun 2011 20:10:15 +0000 Subject: [PATCH] IOQ3 commit 1949 --- reaction/code/game/ai_main.h | 2 +- reaction/code/renderer/tr_main.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/reaction/code/game/ai_main.h b/reaction/code/game/ai_main.h index cf48448a..47f1ffba 100644 --- a/reaction/code/game/ai_main.h +++ b/reaction/code/game/ai_main.h @@ -153,7 +153,7 @@ typedef struct bot_state_s { 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 diff --git a/reaction/code/renderer/tr_main.c b/reaction/code/renderer/tr_main.c index 16134f79..085788f6 100644 --- a/reaction/code/renderer/tr_main.c +++ b/reaction/code/renderer/tr_main.c @@ -1773,7 +1773,7 @@ void R_DecomposeSort( unsigned sort, int *entityNum, shader_t **shader, 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; }