mirror of
https://github.com/fabiangreffrath/woof.git
synced 2025-09-21 10:57:15 -04:00
fix some minor UB indications (#2178)
This commit is contained in:
parent
bba0c59454
commit
73a2f72e4e
@ -1316,7 +1316,7 @@ spawnit:
|
||||
if (mobj->flags & MF_COUNTITEM)
|
||||
totalitems++;
|
||||
|
||||
mobj->angle = ANG45 * (mthing->angle/45);
|
||||
mobj->angle = (angle_t)ANG45 * (mthing->angle/45);
|
||||
if (mthing->options & MTF_AMBUSH)
|
||||
mobj->flags |= MF_AMBUSH;
|
||||
|
||||
|
@ -523,7 +523,7 @@ void R_StoreWallRange(const int start, const int stop)
|
||||
int64_t dx, dy, dx1, dy1, dist;
|
||||
const uint32_t len = curline->r_length; // [FG] use re-calculated seg lengths
|
||||
|
||||
if (ds_p == drawsegs+maxdrawsegs) // killough 1/98 -- fix 2s line HOM
|
||||
if (!drawsegs || ds_p == drawsegs+maxdrawsegs) // killough 1/98 -- fix 2s line HOM
|
||||
{
|
||||
unsigned newmax = maxdrawsegs ? maxdrawsegs*2 : 128; // killough
|
||||
drawsegs = Z_Realloc(drawsegs,newmax*sizeof(*drawsegs),PU_STATIC,0);
|
||||
|
Loading…
x
Reference in New Issue
Block a user