mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-10 14:51:46 +00:00
- 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:
parent
e7bbca8e33
commit
9ad2a2b00e
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue