Suggested improvement by MI on irc.

This commit is contained in:
toasterbabe 2016-08-28 13:51:32 +01:00
parent 50ce152c69
commit c0f5f22b6a

View file

@ -1278,7 +1278,7 @@ fixed_t P_GetMobjGravity(mobj_t *mo)
for (rover = mo->subsector->sector->ffloors; rover; rover = rover->next)
{
if (!((rover->flags & FF_EXISTS) && (P_InsideANonSolidFFloor(mo, rover))))
if (!(rover->flags & FF_EXISTS) || !P_InsideANonSolidFFloor(mo, rover))
continue;
if ((rover->flags & (FF_SWIMMABLE|FF_GOOWATER)) == (FF_SWIMMABLE|FF_GOOWATER))