sv_plasma_per_sec 0 => disable firing

This commit is contained in:
def 2021-11-03 17:21:51 +01:00
parent 82c7b20001
commit 5413041104

View file

@ -106,7 +106,7 @@ void CGun::Tick()
}
m_Pos += m_Core;
}
if(g_Config.m_SvPlasmaPerSec == 0 || m_LastFire + Server()->TickSpeed() / g_Config.m_SvPlasmaPerSec <= Server()->Tick())
if(g_Config.m_SvPlasmaPerSec > 0 && m_LastFire + Server()->TickSpeed() / g_Config.m_SvPlasmaPerSec <= Server()->Tick())
Fire();
}