mirror of
https://github.com/ZDoom/qzdoom.git
synced 2025-06-03 02:11:21 +00:00
- 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:
parent
c3dc84297e
commit
2ffb447f9e
1 changed files with 1 additions and 1 deletions
|
@ -474,7 +474,7 @@ bool P_TeleportMove(AActor* thing, const DVector3 &pos, bool telefrag, bool modi
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
// Don't let players and monsters block item teleports (all other actor types will still block.)
|
// 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;
|
continue;
|
||||||
|
|
||||||
// monsters don't stomp things except on boss level
|
// monsters don't stomp things except on boss level
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue