mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-29 07:22:07 +00:00
- clear WF_WEAPONBOBBING in P_FireWeapon, because otherwise the first frame of the fire animation will be drawn in the current bobbing position and not centered.
This commit is contained in:
parent
e9364fccb8
commit
4bcbd5c011
1 changed files with 2 additions and 0 deletions
|
@ -536,6 +536,7 @@ void P_FireWeapon (player_t *player, FState *state)
|
|||
return;
|
||||
}
|
||||
|
||||
player->WeaponState &= ~WF_WEAPONBOBBING;
|
||||
player->mo->PlayAttacking ();
|
||||
weapon->bAltFire = false;
|
||||
if (state == nullptr)
|
||||
|
@ -572,6 +573,7 @@ void P_FireWeaponAlt (player_t *player, FState *state)
|
|||
return;
|
||||
}
|
||||
|
||||
player->WeaponState &= ~WF_WEAPONBOBBING;
|
||||
player->mo->PlayAttacking ();
|
||||
weapon->bAltFire = true;
|
||||
|
||||
|
|
Loading…
Reference in a new issue