- let non-solid teleporting actors not actually telefrag.

Since they are non-solid they may just be allowed to teleport, even when a monster or player is in the way.
This commit is contained in:
Christoph Oelckers 2020-09-26 18:46:39 +02:00
parent c3dc84297e
commit 2ffb447f9e
1 changed files with 1 additions and 1 deletions

View File

@ -474,7 +474,7 @@ bool P_TeleportMove(AActor* thing, const DVector3 &pos, bool telefrag, bool modi
continue;
// Don't let players and monsters block item teleports (all other actor types will still block.)
if (thing->IsKindOf(NAME_Inventory) && !(thing->flags & MF_SOLID) && ((th->flags3 & MF3_ISMONSTER) || th->player != nullptr))
if ((thing->IsKindOf(NAME_Inventory) || (thing->flags2 & MF2_TELESTOMP)) && !(thing->flags & MF_SOLID) && ((th->flags3 & MF3_ISMONSTER) || th->player != nullptr))
continue;
// monsters don't stomp things except on boss level