Remove rovernum increment from P_CheckPosition because unused

This commit is contained in:
mazmazz 2018-09-10 00:13:32 -04:00
parent 03d1baf422
commit 832f891cbb

View file

@ -1749,7 +1749,6 @@ boolean P_CheckPosition(mobj_t *thing, fixed_t x, fixed_t y)
if (newsubsec->sector->ffloors)
{
ffloor_t *rover;
size_t rovernum = 0;
fixed_t delta1, delta2;
INT32 thingtop = thing->z + thing->height;
@ -1758,10 +1757,7 @@ boolean P_CheckPosition(mobj_t *thing, fixed_t x, fixed_t y)
fixed_t topheight, bottomheight;
if (!(rover->flags & FF_EXISTS))
{
rovernum++;
continue;
}
topheight = P_GetFOFTopZ(thing, newsubsec->sector, rover, x, y, NULL);
bottomheight = P_GetFOFBottomZ(thing, newsubsec->sector, rover, x, y, NULL);
@ -1804,7 +1800,6 @@ boolean P_CheckPosition(mobj_t *thing, fixed_t x, fixed_t y)
}
}
}
rovernum++;
continue;
}
@ -1815,10 +1810,7 @@ boolean P_CheckPosition(mobj_t *thing, fixed_t x, fixed_t y)
else if (!((rover->flags & FF_BLOCKPLAYER && thing->player)
|| (rover->flags & FF_BLOCKOTHERS && !thing->player)
|| rover->flags & FF_QUICKSAND))
{
rovernum++;
continue;
}
if (rover->flags & FF_QUICKSAND)
{
@ -1833,7 +1825,6 @@ boolean P_CheckPosition(mobj_t *thing, fixed_t x, fixed_t y)
}
}
// Quicksand blocks never change heights otherwise.
rovernum++;
continue;
}
@ -1861,7 +1852,6 @@ boolean P_CheckPosition(mobj_t *thing, fixed_t x, fixed_t y)
tmceilingslope = *rover->b_slope;
#endif
}
rovernum++;
}
}