summaryrefslogtreecommitdiff
path: root/src/renderer/tr_main.c
diff options
context:
space:
mode:
authorZack Middleton <zturtleman@gmail.com>2011-11-05 01:02:35 +0000
committerTim Angus <tim@ngus.net>2013-01-12 20:13:58 +0000
commit045d6ad0a2de714d3733c6adeadd1966ebd53fed (patch)
tree3478dd374aea1d11b5f71ba6976f2565be3c3190 /src/renderer/tr_main.c
parentc4a9172a41645b36eb99595a343bcfbed7729757 (diff)
Fixed usage of various entity defines.
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 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;
}