Skip to content

Commit

Permalink
- removed a few static array references.
Browse files Browse the repository at this point in the history
  • Loading branch information
coelckers committed Oct 12, 2021
1 parent a318129 commit 3ea4c94
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions source/games/blood/src/actor.cpp
Expand Up @@ -5500,7 +5500,7 @@ void actExplodeSprite(DBloodActor* actor)

if (pSprite->statnum == kStatExplosion) return;
sfxKill3DSound(pSprite, -1, -1);
evKill(pSprite->index, 3);
evKill(actor);

int nType = kExplosionStandard;

Expand Down Expand Up @@ -5849,7 +5849,7 @@ static void actCheckThings()
{
case kThingDripWater:
case kThingDripBlood:
MakeSplash(&bloodActors[pXSprite->reference]);
MakeSplash(actor);
break;
#ifdef NOONE_EXTENSIONS
case kModernThingThrowableRock:
Expand Down Expand Up @@ -5910,7 +5910,7 @@ static void actCheckProjectiles()
continue;
viewBackupSpriteLoc(actor);
int hit = MoveMissile(actor);
if (hit >= 0) actImpactMissile(&bloodActors[pSprite->index], hit);
if (hit >= 0) actImpactMissile(actor, hit);
}
}

Expand Down
2 changes: 1 addition & 1 deletion source/games/blood/src/ai.cpp
Expand Up @@ -1020,7 +1020,7 @@ int aiDamageSprite(DBloodActor* source, DBloodActor* actor, DAMAGE_TYPE nDmgType
if (((100 * pXSprite->health) / fullHp) <= 75)
{
actor->cumulDamage += nDamage << 4; // to be sure any enemy will play the recoil animation
RecoilDude(&bloodActors[pXSprite->reference]);
RecoilDude(actor);
}
}

Expand Down

0 comments on commit 3ea4c94

Please sign in to comment.