Lavafall lava also kills rings

This commit is contained in:
MascaraSnake 2019-10-05 20:37:48 +02:00
parent 2f4edc0cb9
commit a7d6ebd5bd
1 changed files with 9 additions and 0 deletions

View File

@ -888,6 +888,15 @@ static boolean PIT_CheckThing(mobj_t *thing)
}
#endif
if (tmthing->type == MT_LAVAFALL_LAVA && (thing->type == MT_RING || thing->type == MT_REDTEAMRING || thing->type == MT_BLUETEAMRING || thing->type == MT_FLINGRING))
{
//height check
if (tmthing->z > thing->z + thing->height || thing->z > tmthing->z + tmthing->height || !(thing->health))
return true;
P_KillMobj(thing, tmthing, tmthing, DMG_FIRE);
}
if (tmthing->type == MT_MINECART)
{
//height check