rename this
This commit is contained in:
1 parent
2ea1ac9331
commit
394beb7533
3 files changed
+9
-9
No files matched your search
@@ -2983,7 +2983,7 @@ static void HWR_Subsector(size_t num)
|
||||
|
||||
const sector_t *controlSec = §ors[rover->secnum];
|
||||
|
||||
if (!controlSec->moved)
|
||||
if (controlSec->moved != true)
|
||||
continue;
|
||||
|
||||
anyMoved = true;
|
||||
|
||||
+7
-7
@@ -3554,28 +3554,28 @@ animonly:
|
||||
static void P_CalculatePrecipFloor(precipmobj_t *mobj, boolean spawn)
|
||||
{
|
||||
// recalculate floorz each time
|
||||
const sector_t *mobjsecsubsec;
|
||||
const sector_t *sec;
|
||||
|
||||
if (mobj && mobj->subsector && mobj->subsector->sector)
|
||||
mobjsecsubsec = mobj->subsector->sector;
|
||||
sec = mobj->subsector->sector;
|
||||
else
|
||||
return;
|
||||
|
||||
// no need to recalc anything if not moved
|
||||
if (!spawn && !mobjsecsubsec->moved)
|
||||
if (!spawn && !sec->moved)
|
||||
return;
|
||||
|
||||
mobj->floorz = P_GetSectorFloorZAt(mobjsecsubsec, mobj->x, mobj->y);
|
||||
mobj->floorz = P_GetSectorFloorZAt(sec, mobj->x, mobj->y);
|
||||
|
||||
if (mobjsecsubsec->ffloors)
|
||||
if (sec->ffloors)
|
||||
{
|
||||
ffloor_t *rover;
|
||||
fixed_t topheight;
|
||||
|
||||
for (rover = mobjsecsubsec->ffloors; rover; rover = rover->next)
|
||||
for (rover = sec->ffloors; rover; rover = rover->next)
|
||||
{
|
||||
// If it exists, it'll get rained on.
|
||||
if (!(rover->flags & FF_EXISTS))
|
||||
if (!(rover->flags & FF_EXISTS) || !(rover->flags & FF_RENDERPLANES))
|
||||
continue;
|
||||
|
||||
if (!(rover->flags & FF_BLOCKOTHERS) && !(rover->flags & FF_SWIMMABLE))
|
||||
|
||||
+1
-1
@@ -783,7 +783,7 @@ static void R_Subsector(size_t num)
|
||||
if (!(rover->flags & FF_EXISTS) || !(rover->flags & FF_RENDERPLANES))
|
||||
continue;
|
||||
|
||||
sector_t *controlSec = §ors[rover->secnum];
|
||||
const sector_t *controlSec = §ors[rover->secnum];
|
||||
|
||||
if (controlSec->moved != true)
|
||||
continue;
|
||||
|
||||
Reference in new issue
Block a user