Fixed a bug with the ring lava melting
This commit is contained in:
parent
4375ea8089
commit
d301d2bba4
|
@ -4140,7 +4140,7 @@ static void P_KillRingsInLava(mobj_t *mo)
|
||||||
topheight = P_GetFOFTopZ(mo, node->m_sector, rover, mo->x, mo->y, NULL);
|
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);
|
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);
|
P_KillMobj(mo, NULL, NULL, DMG_FIRE);
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in New Issue