Fix crouch player sprite

This commit is contained in:
Magnus Norddahl 2017-02-09 12:18:40 +01:00
parent 371dd98102
commit c16aa3d361

View file

@ -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;