Skip to content

Commit

Permalink
Fix enemy count for vanilla mode
Browse files Browse the repository at this point in the history
  • Loading branch information
tmyqlfpir authored and nukeykt committed Sep 30, 2023
1 parent 5837c79 commit f4e1865
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions source/blood/src/endgame.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ void CKillMgr::AddCount(spritetype* pSprite)
void CKillMgr::AddKill(spritetype* pSprite)
{
dassert(pSprite != NULL);
if (VanillaMode() || AllowedType(pSprite)) // check type before adding to enemy kills
if (AllowedType(pSprite)) // check type before adding to enemy kills
at4++;
}

Expand All @@ -179,7 +179,8 @@ void CKillMgr::CountTotalKills(void)
spritetype* pSprite = &sprite[nSprite];
if (pSprite->type < kDudeBase || pSprite->type >= kDudeMax)
ThrowError("Non-enemy sprite (%d) in the enemy sprite list.", nSprite);
AddCount(pSprite);
if (AllowedType(pSprite))
AddCount(1);
}
}

Expand Down

0 comments on commit f4e1865

Please sign in to comment.