From d99ed7628cfb804a346ca826b27f863fe7f48385 Mon Sep 17 00:00:00 2001 From: Rachael Alexanderson Date: Thu, 10 Aug 2023 02:07:31 -0400 Subject: [PATCH] - fix: always update psprite scaling --- src/playsim/p_pspr.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/playsim/p_pspr.cpp b/src/playsim/p_pspr.cpp index 79fbd5595..3864967b0 100644 --- a/src/playsim/p_pspr.cpp +++ b/src/playsim/p_pspr.cpp @@ -326,6 +326,13 @@ DPSprite *player_t::GetPSprite(PSPLayers layer) else { oldcaller = pspr->Caller; + + // update scaling properties here + if (newcaller != nullptr && newcaller->IsKindOf(NAME_Weapon)) + { + pspr->baseScale.X = newcaller->FloatVar(NAME_WeaponScaleX); + pspr->baseScale.Y = newcaller->FloatVar(NAME_WeaponScaleY); + } } // Always update the caller here in case we switched weapon