- fix kill counter in Blood (for real this time.)

This commit is contained in:
Christoph Oelckers 2023-01-08 20:12:28 +01:00
parent d7d4bfe04b
commit b7799a5a3c
4 changed files with 5 additions and 5 deletions

View file

@ -155,7 +155,7 @@ void SpidBirthSeqCallback(int, DBloodActor* actor)
{
pDudeExtraE->birthCounter++;
spawned->SetOwner(spawned);
gKillMgr.AddKill(spawned);
gKillMgr.AddKillCount(spawned);
}
}

View file

@ -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));
@ -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;
}

View file

@ -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) {

View file

@ -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: