Kill minecarts that fall into death pits

This commit is contained in:
MascaraSnake 2019-06-15 20:59:56 +02:00
parent 24c6dd1a68
commit 8e61cc6d13
1 changed files with 2 additions and 2 deletions

View File

@ -2580,9 +2580,9 @@ static boolean P_ZMovement(mobj_t *mo)
if (!mo->player && P_CheckDeathPitCollide(mo))
{
if (mo->flags & MF_ENEMY || mo->flags & MF_BOSS)
if (mo->flags & MF_ENEMY || mo->flags & MF_BOSS || mo->type == MT_MINECART)
{
// Kill enemies and bosses that fall into death pits.
// Kill enemies, bosses and minecarts that fall into death pits.
if (mo->health)
{
P_KillMobj(mo, NULL, NULL, 0);