Revert "- simplify and deconstruct logic for applying sector damage - also fixes voodoo doll sector damage in TNT MAP30"
This reverts commit3e33e31d19. Revert "Added MF9_FORCESECTORDAMAGE." This reverts commit61bd3a739a.
This commit is contained in:
parent
e81d563cf4
commit
dd740b59e0
3 changed files with 1 additions and 7 deletions
|
|
@ -4436,11 +4436,7 @@ void AActor::Tick ()
|
|||
if (ObjectFlags & OF_EuthanizeMe) return;
|
||||
}
|
||||
//[inkoalawetrust] Genericized level damage handling that makes sector, 3D floor, and TERRAIN flat damage affect monsters and other NPCs too.
|
||||
bool afsdnope = !!(flags9 & MF9_NOSECTORDAMAGE);
|
||||
bool afsdforce = !!(flags9 & MF9_FORCESECTORDAMAGE);
|
||||
bool sfhurtmonsters = !!(Sector->MoreFlags & SECMF_HURTMONSTERS);
|
||||
bool isplayer = (player != nullptr) && (this == player->mo);
|
||||
if ((!afsdnope || afsdforce) && (isplayer || sfhurtmonsters || afsdforce))
|
||||
if (!(flags9 & MF9_NOSECTORDAMAGE) && (player || (player == nullptr && Sector->MoreFlags & SECMF_HURTMONSTERS)))
|
||||
{
|
||||
P_ActorOnSpecial3DFloor(this);
|
||||
P_ActorInSpecialSector(this,Sector);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue