mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-25 13:31:37 +00:00
Fix crouch player sprite
This commit is contained in:
parent
371dd98102
commit
c16aa3d361
1 changed files with 5 additions and 4 deletions
|
@ -939,6 +939,11 @@ namespace swrenderer
|
|||
sprite.spriteScale = thing->Scale;
|
||||
sprite.renderflags = thing->renderflags;
|
||||
|
||||
if (thing->player != nullptr)
|
||||
{
|
||||
P_CheckPlayerSprite(thing, sprite.spritenum, sprite.spriteScale);
|
||||
}
|
||||
|
||||
if (thing->picnum.isValid())
|
||||
{
|
||||
sprite.picnum = thing->picnum;
|
||||
|
@ -1034,10 +1039,6 @@ namespace swrenderer
|
|||
sprite.spriteScale.Y = -sprite.spriteScale.Y;
|
||||
sprite.renderflags ^= RF_YFLIP;
|
||||
}
|
||||
if (thing->player != nullptr)
|
||||
{
|
||||
P_CheckPlayerSprite(thing, sprite.spritenum, sprite.spriteScale);
|
||||
}
|
||||
if (sprite.spriteScale.X < 0)
|
||||
{
|
||||
sprite.spriteScale.X = -sprite.spriteScale.X;
|
||||
|
|
Loading…
Reference in a new issue