- 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)
This commit is contained in:
Christoph Oelckers 2010-12-06 21:57:51 +00:00
parent e7bbca8e33
commit 9ad2a2b00e

View file

@ -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;