- fix: always update psprite scaling

This commit is contained in:
Rachael Alexanderson 2023-08-10 02:07:31 -04:00
parent 1e0309ea10
commit d99ed7628c
1 changed files with 7 additions and 0 deletions

View File

@ -326,6 +326,13 @@ DPSprite *player_t::GetPSprite(PSPLayers layer)
else else
{ {
oldcaller = pspr->Caller; 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 // Always update the caller here in case we switched weapon