mirror of
https://github.com/ZDoom/Raze.git
synced 2024-12-01 16:42:16 +00:00
- fixed kill counting in Blood.
This commit is contained in:
parent
5e4dc64fa5
commit
6a5d548019
2 changed files with 7 additions and 0 deletions
|
@ -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;
|
||||||
|
|
|
@ -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);
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue