summaryrefslogtreecommitdiff
path: root/src/renderer/tr_main.c
diff options
context:
space:
mode:
authorThilo Schulz <arny@ats.s.bawue.de>2011-04-26 09:48:40 +0000
committerTim Angus <tim@ngus.net>2013-01-09 15:49:51 +0000
commitc4186224a16b1dc238775bbe9ff3af4362c7d5eb (patch)
tree741b6bf5b54b89b6df95adf6fb29d7bd326a3bff /src/renderer/tr_main.c
parent6773213d7f8f489407a3e7d7e60f7f3034c12c5c (diff)
Replace a few numeric constants with already defined macros, patch by ZTurtleMan
Diffstat (limited to 'src/renderer/tr_main.c')
-rw-r--r--src/renderer/tr_main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/renderer/tr_main.c b/src/renderer/tr_main.c
index 298d2d98..23ef8241 100644
--- a/src/renderer/tr_main.c
+++ b/src/renderer/tr_main.c
@@ -1129,7 +1129,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;
}