mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
Merge pull request #456 from timakro/master
disable deepfly patch applied at wrong position
This commit is contained in:
commit
f6d4e0ce81
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue