From 045d6ad0a2de714d3733c6adeadd1966ebd53fed Mon Sep 17 00:00:00 2001 From: Zack Middleton Date: Sat, 5 Nov 2011 01:02:35 +0000 Subject: Fixed usage of various entity defines. --- src/renderer/tr_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/renderer/tr_main.c') diff --git a/src/renderer/tr_main.c b/src/renderer/tr_main.c index 880850ef..060fafb6 100644 --- a/src/renderer/tr_main.c +++ b/src/renderer/tr_main.c @@ -1128,7 +1128,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 ) & (MAX_GENTITIES-1); + *entityNum = ( sort >> QSORT_ENTITYNUM_SHIFT ) & MAX_ENTITIES; *dlightMap = sort & 3; } -- cgit