From c4186224a16b1dc238775bbe9ff3af4362c7d5eb Mon Sep 17 00:00:00 2001 From: Thilo Schulz Date: Tue, 26 Apr 2011 09:48:40 +0000 Subject: Replace a few numeric constants with already defined macros, patch by ZTurtleMan --- src/renderer/tr_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- cgit