mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2024-11-10 07:12:07 +00:00
collision: make firstbrushside unsigned
This commit is contained in:
parent
446224467d
commit
ea91764196
2 changed files with 3 additions and 4 deletions
|
@ -683,8 +683,7 @@ CM_ClipBoxToBrush(vec3_t mins, vec3_t maxs, vec3_t p1,
|
|||
|
||||
for (i = 0; i < brush->numsides; i++)
|
||||
{
|
||||
if (((brush->firstbrushside + i) < 0) ||
|
||||
((brush->firstbrushside + i) >= (cmod->numbrushsides + EXTRA_LUMP_BRUSHSIDES)))
|
||||
if ((brush->firstbrushside + i) >= (cmod->numbrushsides + EXTRA_LUMP_BRUSHSIDES))
|
||||
{
|
||||
Com_DPrintf("%s: Incorrect brushside %d\n",
|
||||
__func__, brush->firstbrushside + i);
|
||||
|
|
|
@ -908,8 +908,8 @@ typedef struct
|
|||
|
||||
typedef struct
|
||||
{
|
||||
int firstside;
|
||||
int numsides;
|
||||
unsigned int firstside;
|
||||
unsigned int numsides;
|
||||
int contents;
|
||||
} dbrush_t;
|
||||
|
||||
|
|
Loading…
Reference in a new issue