- removed a few static array references.

This commit is contained in:
Christoph Oelckers 2021-09-01 01:28:19 +02:00
parent a318129ff3
commit 3ea4c94266
2 changed files with 4 additions and 4 deletions

View file

@ -5500,7 +5500,7 @@ void actExplodeSprite(DBloodActor* actor)
if (pSprite->statnum == kStatExplosion) return; if (pSprite->statnum == kStatExplosion) return;
sfxKill3DSound(pSprite, -1, -1); sfxKill3DSound(pSprite, -1, -1);
evKill(pSprite->index, 3); evKill(actor);
int nType = kExplosionStandard; int nType = kExplosionStandard;
@ -5849,7 +5849,7 @@ static void actCheckThings()
{ {
case kThingDripWater: case kThingDripWater:
case kThingDripBlood: case kThingDripBlood:
MakeSplash(&bloodActors[pXSprite->reference]); MakeSplash(actor);
break; break;
#ifdef NOONE_EXTENSIONS #ifdef NOONE_EXTENSIONS
case kModernThingThrowableRock: case kModernThingThrowableRock:
@ -5910,7 +5910,7 @@ static void actCheckProjectiles()
continue; continue;
viewBackupSpriteLoc(actor); viewBackupSpriteLoc(actor);
int hit = MoveMissile(actor); int hit = MoveMissile(actor);
if (hit >= 0) actImpactMissile(&bloodActors[pSprite->index], hit); if (hit >= 0) actImpactMissile(actor, hit);
} }
} }

View file

@ -1020,7 +1020,7 @@ int aiDamageSprite(DBloodActor* source, DBloodActor* actor, DAMAGE_TYPE nDmgType
if (((100 * pXSprite->health) / fullHp) <= 75) if (((100 * pXSprite->health) / fullHp) <= 75)
{ {
actor->cumulDamage += nDamage << 4; // to be sure any enemy will play the recoil animation actor->cumulDamage += nDamage << 4; // to be sure any enemy will play the recoil animation
RecoilDude(&bloodActors[pXSprite->reference]); RecoilDude(actor);
} }
} }