- fixed kill counting in Blood.

This commit is contained in:
Christoph Oelckers 2022-12-13 08:37:22 +01:00
parent 5e4dc64fa5
commit 6a5d548019
2 changed files with 7 additions and 0 deletions

View file

@ -79,6 +79,12 @@ void CKillMgr::AddKill(DBloodActor* actor)
Kills++; Kills++;
} }
void CKillMgr::AddKillCount(DBloodActor* actor)
{
if (actor->spr.statnum == kStatDude && actor->spr.type != kDudeBat && actor->spr.type != kDudeRat && actor->spr.type != kDudeInnocent && actor->spr.type != kDudeBurningInnocent)
TotalKills++;
}
void CKillMgr::CountTotalKills(void) void CKillMgr::CountTotalKills(void)
{ {
TotalKills = 0; TotalKills = 0;

View file

@ -31,6 +31,7 @@ public:
int TotalKills, Kills; int TotalKills, Kills;
void SetCount(int); void SetCount(int);
void AddKill(DBloodActor* actor); void AddKill(DBloodActor* actor);
void AddKillCount(DBloodActor* actor);
void CountTotalKills(void); void CountTotalKills(void);
void Clear(void); void Clear(void);
}; };