- DoScaleSprite.

This commit is contained in:
Christoph Oelckers 2021-10-29 21:06:37 +02:00
parent e84d61e80a
commit e8f9afb174
5 changed files with 7 additions and 8 deletions

View file

@ -58,11 +58,10 @@ extern STATEp sg_NinjaGrabThroat[];
int DoActorStopFall(DSWActor* actor);
int
DoScaleSprite(short SpriteNum)
int DoScaleSprite(DSWActor* actor)
{
SPRITEp sp = &sprite[SpriteNum];
USERp u = User[SpriteNum].Data();
auto u = actor->u();
auto sp = &actor->s();
int scale_value;
if (u->scale_speed)

View file

@ -1335,7 +1335,7 @@ DoBunnyMove(DSWActor* actor)
if (u->scale_speed)
{
DoScaleSprite(SpriteNum);
DoScaleSprite(actor);
}
if (TEST(u->Flags, SPR_JUMPING | SPR_FALLING))

View file

@ -68,7 +68,7 @@ int DoFall(short SpriteNum);
void KeepActorOnFloor(short SpriteNum);
int DoActorSlide(DSWActor* actor);
int DoActorSectorDamage(DSWActor* actor);
int DoScaleSprite(short SpriteNum);
int DoScaleSprite(DSWActor* actor);
void InitPlayerSprite(PLAYERp pp);
void InitAllPlayerSprites(void);

View file

@ -1296,7 +1296,7 @@ DoRipperMove(DSWActor* actor)
if (u->scale_speed)
{
DoScaleSprite(SpriteNum);
DoScaleSprite(actor);
}
if (TEST(u->Flags, SPR_JUMPING | SPR_FALLING))

View file

@ -1314,7 +1314,7 @@ DoRipper2Move(DSWActor* actor)
if (u->scale_speed)
{
DoScaleSprite(SpriteNum);
DoScaleSprite(actor);
}
if (TEST(u->Flags, SPR_JUMPING | SPR_FALLING))