Merge pull request #456 from timakro/master

disable deepfly patch applied at wrong position
This commit is contained in:
Dennis Felsing 2016-05-02 18:06:13 +02:00
commit f6d4e0ce81

View file

@ -138,10 +138,6 @@ void CCharacter::HandleJetpack()
if (m_Jetpack && m_Core.m_ActiveWeapon == WEAPON_GUN) if (m_Jetpack && m_Core.m_ActiveWeapon == WEAPON_GUN)
FullAuto = true; FullAuto = true;
// don't fire non auto weapons when player is deep and sv_deepfly is disabled
if(!g_Config.m_SvDeepfly && !FullAuto && m_DeepFreeze)
return;
// check if we gonna fire // check if we gonna fire
bool WillFire = false; bool WillFire = false;
if(CountInput(m_LatestPrevInput.m_Fire, m_LatestInput.m_Fire).m_Presses) if(CountInput(m_LatestPrevInput.m_Fire, m_LatestInput.m_Fire).m_Presses)
@ -349,6 +345,10 @@ void CCharacter::FireWeapon()
if (m_Jetpack && m_Core.m_ActiveWeapon == WEAPON_GUN) if (m_Jetpack && m_Core.m_ActiveWeapon == WEAPON_GUN)
FullAuto = true; FullAuto = true;
// don't fire non auto weapons when player is deep and sv_deepfly is disabled
if(!g_Config.m_SvDeepfly && !FullAuto && m_DeepFreeze)
return;
// check if we gonna fire // check if we gonna fire
bool WillFire = false; bool WillFire = false;
if(CountInput(m_LatestPrevInput.m_Fire, m_LatestInput.m_Fire).m_Presses) if(CountInput(m_LatestPrevInput.m_Fire, m_LatestInput.m_Fire).m_Presses)