mirror of
https://github.com/ZDoom/Raze.git
synced 2024-11-15 08:51:24 +00:00
- DoScaleSprite.
This commit is contained in:
parent
e84d61e80a
commit
e8f9afb174
5 changed files with 7 additions and 8 deletions
|
@ -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)
|
||||
|
|
|
@ -1335,7 +1335,7 @@ DoBunnyMove(DSWActor* actor)
|
|||
|
||||
if (u->scale_speed)
|
||||
{
|
||||
DoScaleSprite(SpriteNum);
|
||||
DoScaleSprite(actor);
|
||||
}
|
||||
|
||||
if (TEST(u->Flags, SPR_JUMPING | SPR_FALLING))
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -1296,7 +1296,7 @@ DoRipperMove(DSWActor* actor)
|
|||
|
||||
if (u->scale_speed)
|
||||
{
|
||||
DoScaleSprite(SpriteNum);
|
||||
DoScaleSprite(actor);
|
||||
}
|
||||
|
||||
if (TEST(u->Flags, SPR_JUMPING | SPR_FALLING))
|
||||
|
|
|
@ -1314,7 +1314,7 @@ DoRipper2Move(DSWActor* actor)
|
|||
|
||||
if (u->scale_speed)
|
||||
{
|
||||
DoScaleSprite(SpriteNum);
|
||||
DoScaleSprite(actor);
|
||||
}
|
||||
|
||||
if (TEST(u->Flags, SPR_JUMPING | SPR_FALLING))
|
||||
|
|
Loading…
Reference in a new issue