mirror of
https://github.com/openmoh/openmohaa.git
synced 2025-04-28 21:57:57 +03:00
Fixes entities not being rendered after number 1023
This fixes #310 where some static models would not be rendered, making it look like there are invisible walls.
This commit is contained in:
parent
a7df73073d
commit
64626a767c
2 changed files with 3 additions and 3 deletions
|
@ -1189,11 +1189,11 @@ the bits are allocated as follows:
|
|||
2-6 : fog index
|
||||
0-1 : dlightmap index
|
||||
*/
|
||||
#define QSORT_SHADERNUM_SHIFT 21 // was 22, decreased in 2.0
|
||||
#define QSORT_SHADERNUM_SHIFT 21 // was 22, decreased in 2.30
|
||||
#define QSORT_ENTITYNUM_SHIFT 8
|
||||
#define QSORT_FOGNUM_SHIFT 2
|
||||
#define QSORT_REFENTITYNUM_SHIFT 7
|
||||
#define QSORT_STATICMODEL_SHIFT 20 // was 21, decreased in 2.0
|
||||
#define QSORT_STATICMODEL_SHIFT 20 // was 21, decreased in 2.30
|
||||
|
||||
extern int gl_filter_min, gl_filter_max;
|
||||
|
||||
|
|
|
@ -1384,7 +1384,7 @@ R_DecomposeSort
|
|||
*/
|
||||
void R_DecomposeSort(unsigned int sort, int* entityNum, shader_t** shader, int* dlightMap, qboolean* bStaticModel) {
|
||||
*shader = tr.sortedShaders[ ( sort >> QSORT_SHADERNUM_SHIFT ) & (MAX_SHADERS-1) ];
|
||||
*entityNum = ( sort >> QSORT_ENTITYNUM_SHIFT ) & 1023;
|
||||
*entityNum = ( sort >> QSORT_ENTITYNUM_SHIFT ) & 4095;
|
||||
*dlightMap = sort & 15;
|
||||
*bStaticModel = sort & (1 << QSORT_STATICMODEL_SHIFT);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue