Skip to content

Commit

Permalink
* fixed fast animation switches with GL
Browse files Browse the repository at this point in the history
  • Loading branch information
avoitishin authored and Xottab-DUTY committed Aug 18, 2017
1 parent 47cba24 commit 513f918
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/xrGame/WeaponMagazinedWGrenade.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -617,7 +617,7 @@ void CWeaponMagazinedWGrenade::PlayAnimIdle()
if (IsZoomed())
{
if (m_bGrenadeMode)
PlayHUDMotion("anm_idle_g_aim", FALSE, NULL, GetState());
PlayHUDMotion("anm_idle_g_aim", /*FALSE*/TRUE, NULL, GetState()); //AVO: fix fast anim switch
else
PlayHUDMotion("anm_idle_w_gl_aim", TRUE, NULL, GetState());
}
Expand All @@ -643,7 +643,7 @@ void CWeaponMagazinedWGrenade::PlayAnimIdle()
if (m_bGrenadeMode)
{
if (act_state == 0)
PlayHUDMotion("anm_idle_g", FALSE, NULL, GetState());
PlayHUDMotion("anm_idle_g", /*FALSE*/TRUE, NULL, GetState()); //AVO: fix fast anim switch
else if (act_state == 1)
PlayHUDMotion("anm_idle_sprint_g", TRUE, NULL, GetState());
else if (act_state == 2)
Expand All @@ -657,7 +657,7 @@ void CWeaponMagazinedWGrenade::PlayAnimIdle()
else
{
if (act_state == 0)
PlayHUDMotion("anm_idle_w_gl", FALSE, NULL, GetState());
PlayHUDMotion("anm_idle_w_gl", /*FALSE*/TRUE, NULL, GetState()); //AVO: fix fast anim switch
else if (act_state == 1)
PlayHUDMotion("anm_idle_sprint_w_gl", TRUE, NULL, GetState());
else if (act_state == 2)
Expand Down Expand Up @@ -693,9 +693,9 @@ void CWeaponMagazinedWGrenade::PlayAnimShoot()
void CWeaponMagazinedWGrenade::PlayAnimModeSwitch()
{
if (m_bGrenadeMode)
PlayHUDMotion("anm_switch_g", FALSE, this, eSwitch);
PlayHUDMotion("anm_switch_g", /*FALSE*/ TRUE, this, eSwitch); //AVO: fix fast anim switch
else
PlayHUDMotion("anm_switch", FALSE, this, eSwitch);
PlayHUDMotion("anm_switch", /*FALSE*/ TRUE, this, eSwitch); //AVO: fix fast anim switch
}

void CWeaponMagazinedWGrenade::PlayAnimBore()
Expand Down

0 comments on commit 513f918

Please sign in to comment.