diff --git a/src/playsim/p_mobj.cpp b/src/playsim/p_mobj.cpp index 0cbcb813bb..8d34e6c73b 100644 --- a/src/playsim/p_mobj.cpp +++ b/src/playsim/p_mobj.cpp @@ -803,7 +803,7 @@ DEFINE_ACTION_FUNCTION(AActor, GiveInventoryType) void AActor::CopyFriendliness (AActor *other, bool changeTarget, bool resetHealth) { - Level->total_monsters -= CountsAsKill(); + if (health > 0) Level->total_monsters -= CountsAsKill(); TIDtoHate = other->TIDtoHate; LastLookActor = other->LastLookActor; LastLookPlayerNumber = other->LastLookPlayerNumber; @@ -818,7 +818,7 @@ void AActor::CopyFriendliness (AActor *other, bool changeTarget, bool resetHealt LastHeard = target = other->target; } if (resetHealth) health = SpawnHealth(); - Level->total_monsters += CountsAsKill(); + if (health > 0) Level->total_monsters += CountsAsKill(); } DEFINE_ACTION_FUNCTION(AActor, CopyFriendliness)