Skip to content

Commit 513f918

Browse files
avoitishinXottab-DUTY
authored andcommitted
* fixed fast animation switches with GL
1 parent 47cba24 commit 513f918

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/xrGame/WeaponMagazinedWGrenade.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -617,7 +617,7 @@ void CWeaponMagazinedWGrenade::PlayAnimIdle()
617617
if (IsZoomed())
618618
{
619619
if (m_bGrenadeMode)
620-
PlayHUDMotion("anm_idle_g_aim", FALSE, NULL, GetState());
620+
PlayHUDMotion("anm_idle_g_aim", /*FALSE*/TRUE, NULL, GetState()); //AVO: fix fast anim switch
621621
else
622622
PlayHUDMotion("anm_idle_w_gl_aim", TRUE, NULL, GetState());
623623
}
@@ -643,7 +643,7 @@ void CWeaponMagazinedWGrenade::PlayAnimIdle()
643643
if (m_bGrenadeMode)
644644
{
645645
if (act_state == 0)
646-
PlayHUDMotion("anm_idle_g", FALSE, NULL, GetState());
646+
PlayHUDMotion("anm_idle_g", /*FALSE*/TRUE, NULL, GetState()); //AVO: fix fast anim switch
647647
else if (act_state == 1)
648648
PlayHUDMotion("anm_idle_sprint_g", TRUE, NULL, GetState());
649649
else if (act_state == 2)
@@ -657,7 +657,7 @@ void CWeaponMagazinedWGrenade::PlayAnimIdle()
657657
else
658658
{
659659
if (act_state == 0)
660-
PlayHUDMotion("anm_idle_w_gl", FALSE, NULL, GetState());
660+
PlayHUDMotion("anm_idle_w_gl", /*FALSE*/TRUE, NULL, GetState()); //AVO: fix fast anim switch
661661
else if (act_state == 1)
662662
PlayHUDMotion("anm_idle_sprint_w_gl", TRUE, NULL, GetState());
663663
else if (act_state == 2)
@@ -693,9 +693,9 @@ void CWeaponMagazinedWGrenade::PlayAnimShoot()
693693
void CWeaponMagazinedWGrenade::PlayAnimModeSwitch()
694694
{
695695
if (m_bGrenadeMode)
696-
PlayHUDMotion("anm_switch_g", FALSE, this, eSwitch);
696+
PlayHUDMotion("anm_switch_g", /*FALSE*/ TRUE, this, eSwitch); //AVO: fix fast anim switch
697697
else
698-
PlayHUDMotion("anm_switch", FALSE, this, eSwitch);
698+
PlayHUDMotion("anm_switch", /*FALSE*/ TRUE, this, eSwitch); //AVO: fix fast anim switch
699699
}
700700

701701
void CWeaponMagazinedWGrenade::PlayAnimBore()

0 commit comments

Comments
 (0)