From 17ee96e6c8bbf4d5284bf5c93901e3cd7f5007bf Mon Sep 17 00:00:00 2001 From: Zack Middleton Date: Tue, 30 Oct 2012 09:00:58 +0000 Subject: [PATCH] Clean up getting pshadowMap in Rend2's R_DecomposeSort(). --- code/rend2/tr_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/rend2/tr_main.c b/code/rend2/tr_main.c index ea842ff3..f91c943a 100644 --- a/code/rend2/tr_main.c +++ b/code/rend2/tr_main.c @@ -1868,7 +1868,7 @@ void R_DecomposeSort( unsigned sort, int *entityNum, shader_t **shader, *fogNum = ( sort >> QSORT_FOGNUM_SHIFT ) & 31; *shader = tr.sortedShaders[ ( sort >> QSORT_SHADERNUM_SHIFT ) & (MAX_SHADERS-1) ]; *entityNum = ( sort >> QSORT_REFENTITYNUM_SHIFT ) & REFENTITYNUM_MASK; - *pshadowMap = (sort & 2) >> 1; + *pshadowMap = (sort >> QSORT_PSHADOW_SHIFT ) & 1; *dlightMap = sort & 1; }