From 9ad2a2b00e82a74c9b3ed6f440deba5188ea9273 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Mon, 6 Dec 2010 21:57:51 +0000 Subject: [PATCH] - fixed: AActor::ClearCounters should not decrease the kill count if it is called for a dead monster which can happen in Thing_Remove. SVN r3022 (trunk) --- src/p_mobj.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/p_mobj.cpp b/src/p_mobj.cpp index adfbeb0ef8..a736008917 100644 --- a/src/p_mobj.cpp +++ b/src/p_mobj.cpp @@ -5630,7 +5630,7 @@ const char *AActor::GetTag(const char *def) const void AActor::ClearCounters() { - if (CountsAsKill()) + if (CountsAsKill() && health > 0) { level.total_monsters--; flags &= ~MF_COUNTKILL;