- fix: always update psprite scaling

This commit is contained in:
Rachael Alexanderson 2023-08-10 02:07:31 -04:00
parent 1e0309ea10
commit d99ed7628c

View file

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