From c16aa3d3612c5a8217e0b5e2f0a487097bc436cc Mon Sep 17 00:00:00 2001 From: Magnus Norddahl Date: Thu, 9 Feb 2017 12:18:40 +0100 Subject: [PATCH] Fix crouch player sprite --- src/swrenderer/scene/r_opaque_pass.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/swrenderer/scene/r_opaque_pass.cpp b/src/swrenderer/scene/r_opaque_pass.cpp index 76528ae141..ac8505dd26 100644 --- a/src/swrenderer/scene/r_opaque_pass.cpp +++ b/src/swrenderer/scene/r_opaque_pass.cpp @@ -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;