- SetGunQuake

This commit is contained in:
Christoph Oelckers 2021-11-06 10:25:24 +01:00
parent 2f1e23a654
commit 03c9ef6d20
3 changed files with 4 additions and 4 deletions

View file

@ -101,7 +101,7 @@ void QuakeViewChange(PLAYERp pp, int* z_diff, int* x_diff, int* y_diff, short* a
void DoQuake(PLAYERp pp);
bool SetQuake(PLAYERp pp, short tics, short amt);
int SetExpQuake(DSWActor*);
int SetGunQuake(int16_t SpriteNum);
int SetGunQuake(DSWActor*);
int SetPlayerQuake(PLAYERp mpp);
int SetNuclearQuake(DSWActor*);
int SetSumoQuake(DSWActor*);

View file

@ -278,9 +278,9 @@ SetExpQuake(DSWActor* actor)
}
int
SetGunQuake(int16_t SpriteNum)
SetGunQuake(DSWActor* actor)
{
SPRITEp sp = &sprite[SpriteNum];
SPRITEp sp = &actor->s();
SpawnQuake(sp->sectnum, sp->x, sp->y, sp->z, 40, 8, 40000);

View file

@ -16881,7 +16881,7 @@ int InitSobjGun(PLAYERp pp)
case 0:
SpawnVis(actor, -1, -1, -1, -1, 8);
SpawnBigGunFlames(actor, pp->Actor(), pp->sop, false);
SetGunQuake(actor->GetSpriteIndex());
SetGunQuake(actor);
InitTankShell(actor, pp);
if (!SP_TAG5(sp))
pp->FirePause = 80;