Skip to content

Commit

Permalink
- fix kill counter in Blood (for real this time.)
Browse files Browse the repository at this point in the history
  • Loading branch information
coelckers committed Jan 8, 2023
1 parent d7d4bfe commit b7799a5
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion source/games/blood/src/aispid.cpp
Expand Up @@ -155,7 +155,7 @@ void SpidBirthSeqCallback(int, DBloodActor* actor)
{
pDudeExtraE->birthCounter++;
spawned->SetOwner(spawned);
gKillMgr.AddKill(spawned);
gKillMgr.AddKillCount(spawned);
}
}

Expand Down
4 changes: 2 additions & 2 deletions source/games/blood/src/aiunicult.cpp
Expand Up @@ -256,7 +256,7 @@ void genDudeAttack1(int, DBloodActor* actor)
aiActivateDude(spawned);
}

gKillMgr.AddKill(spawned);
gKillMgr.AddKillCount(spawned);
pExtra->slave[pExtra->slaveCount++] = spawned;
if (!playGenDudeSound(actor, kGenDudeSndAttackNormal))
sfxPlay3DSoundCP(actor, 379, 1, 0, 0x10000 - Random3(0x3000));
Expand Down Expand Up @@ -1925,7 +1925,7 @@ DBloodActor* genDudeSpawn(DBloodActor* source, DBloodActor* actor, double nDist)
spawned->spr.scale = source->spr.scale;
}

gKillMgr.AddKill(spawned);
gKillMgr.AddKillCount(spawned);
aiInitSprite(spawned);
return spawned;
}
Expand Down
2 changes: 1 addition & 1 deletion source/games/blood/src/nnexts.cpp
Expand Up @@ -308,7 +308,7 @@ static DBloodActor* nnExtSpawnDude(DBloodActor* sourceactor, DBloodActor* origin

aiInitSprite(pDudeActor);

gKillMgr.AddKill(pDudeActor);
gKillMgr.AddKillCount(pDudeActor);

bool burning = IsBurningDude(pDudeActor);
if (burning) {
Expand Down
2 changes: 1 addition & 1 deletion source/games/blood/src/triggers.cpp
Expand Up @@ -485,7 +485,7 @@ void OperateSprite(DBloodActor* actor, EVENT event)
{
auto spawned = actSpawnDude(actor, actor->xspr.data1, -1);
if (spawned) {
gKillMgr.AddKill(spawned);
gKillMgr.AddKillCount(spawned);
switch (actor->xspr.data1) {
case kDudeBurningInnocent:
case kDudeBurningCultist:
Expand Down

0 comments on commit b7799a5

Please sign in to comment.