mirror of
https://github.com/DrBeef/Raze.git
synced 2024-11-22 12:11:21 +00:00
- fix kill counter in Blood (for real this time.)
This commit is contained in:
parent
d7d4bfe04b
commit
b7799a5a3c
4 changed files with 5 additions and 5 deletions
|
@ -155,7 +155,7 @@ void SpidBirthSeqCallback(int, DBloodActor* actor)
|
|||
{
|
||||
pDudeExtraE->birthCounter++;
|
||||
spawned->SetOwner(spawned);
|
||||
gKillMgr.AddKill(spawned);
|
||||
gKillMgr.AddKillCount(spawned);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue