mirror of https://github.com/ZDoom/gzdoom.git
- fix: always update psprite scaling
This commit is contained in:
parent
1e0309ea10
commit
d99ed7628c
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue