mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-10 14:51:40 +00:00
- fix: always update psprite scaling
This commit is contained in:
parent
1e0309ea10
commit
d99ed7628c
1 changed files with 7 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue