mirror of
https://github.com/fabiangreffrath/woof.git
synced 2025-09-22 11:22:18 -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)
|
if (mobj->flags & MF_COUNTITEM)
|
||||||
totalitems++;
|
totalitems++;
|
||||||
|
|
||||||
mobj->angle = ANG45 * (mthing->angle/45);
|
mobj->angle = (angle_t)ANG45 * (mthing->angle/45);
|
||||||
if (mthing->options & MTF_AMBUSH)
|
if (mthing->options & MTF_AMBUSH)
|
||||||
mobj->flags |= MF_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;
|
int64_t dx, dy, dx1, dy1, dist;
|
||||||
const uint32_t len = curline->r_length; // [FG] use re-calculated seg lengths
|
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
|
unsigned newmax = maxdrawsegs ? maxdrawsegs*2 : 128; // killough
|
||||||
drawsegs = Z_Realloc(drawsegs,newmax*sizeof(*drawsegs),PU_STATIC,0);
|
drawsegs = Z_Realloc(drawsegs,newmax*sizeof(*drawsegs),PU_STATIC,0);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user