mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-01-31 05:30:48 +00:00
Fixed a bug with the ring lava melting
This commit is contained in:
parent
4375ea8089
commit
d301d2bba4
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue