Fixed a bug with the ring lava melting

This commit is contained in:
MascaraSnake 2019-09-29 23:22:38 +02:00
parent 4375ea8089
commit d301d2bba4
1 changed files with 1 additions and 1 deletions

View File

@ -4140,7 +4140,7 @@ static void P_KillRingsInLava(mobj_t *mo)
topheight = P_GetFOFTopZ(mo, node->m_sector, rover, mo->x, mo->y, NULL);
bottomheight = P_GetFOFBottomZ(mo, node->m_sector, rover, mo->x, mo->y, NULL);
if (mo->z <= topheight || mo->z + mo->height >= bottomheight) // if ring touches it, KILL IT
if (mo->z <= topheight && mo->z + mo->height >= bottomheight) // if ring touches it, KILL IT
{
P_KillMobj(mo, NULL, NULL, DMG_FIRE);
return;