- 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 committed by drfrag
parent cf8dffce03
commit 792f6afbeb

View file

@ -483,7 +483,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