collision: make firstbrushside unsigned

This commit is contained in:
Denis Pauk 2024-04-15 23:59:32 +03:00
parent 446224467d
commit ea91764196
2 changed files with 3 additions and 4 deletions

View file

@ -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);

View file

@ -908,8 +908,8 @@ typedef struct
typedef struct
{
int firstside;
int numsides;
unsigned int firstside;
unsigned int numsides;
int contents;
} dbrush_t;