Skip to content

Commit

Permalink
Fixed bug with shaking weapon in switch mode on sprint
Browse files Browse the repository at this point in the history
  • Loading branch information
GermanAizek committed Nov 30, 2022
1 parent 7bd98b3 commit ed35074
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions src/xrGame/WeaponMagazinedWGrenade.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -407,19 +407,7 @@ void CWeaponMagazinedWGrenade::ReloadMagazine()

void CWeaponMagazinedWGrenade::OnStateSwitch(u32 S, u32 oldState)
{
switch (S)
{
case eSwitch:
{
if (!SwitchMode())
{
SwitchState(eIdle);
return;
}
}
break;
}

if (S == eSwitch && !SwitchMode()) return;
inherited::OnStateSwitch(S, oldState);
UpdateGrenadeVisibility(!!iAmmoElapsed || S == eReload);
}
Expand Down

0 comments on commit ed35074

Please sign in to comment.