From b7799a5a3c4926c7a04a9ff448c708e290f65075 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sun, 8 Jan 2023 20:12:28 +0100 Subject: [PATCH] - fix kill counter in Blood (for real this time.) --- source/games/blood/src/aispid.cpp | 2 +- source/games/blood/src/aiunicult.cpp | 4 ++-- source/games/blood/src/nnexts.cpp | 2 +- source/games/blood/src/triggers.cpp | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/source/games/blood/src/aispid.cpp b/source/games/blood/src/aispid.cpp index a8d23a543..586e7a8ba 100644 --- a/source/games/blood/src/aispid.cpp +++ b/source/games/blood/src/aispid.cpp @@ -155,7 +155,7 @@ void SpidBirthSeqCallback(int, DBloodActor* actor) { pDudeExtraE->birthCounter++; spawned->SetOwner(spawned); - gKillMgr.AddKill(spawned); + gKillMgr.AddKillCount(spawned); } } diff --git a/source/games/blood/src/aiunicult.cpp b/source/games/blood/src/aiunicult.cpp index a384b2926..03fec3679 100644 --- a/source/games/blood/src/aiunicult.cpp +++ b/source/games/blood/src/aiunicult.cpp @@ -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; } diff --git a/source/games/blood/src/nnexts.cpp b/source/games/blood/src/nnexts.cpp index a078928e1..77147f2b9 100644 --- a/source/games/blood/src/nnexts.cpp +++ b/source/games/blood/src/nnexts.cpp @@ -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) { diff --git a/source/games/blood/src/triggers.cpp b/source/games/blood/src/triggers.cpp index 230820100..5af4b6106 100644 --- a/source/games/blood/src/triggers.cpp +++ b/source/games/blood/src/triggers.cpp @@ -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: