mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
sv_plasma_per_sec 0 => disable firing
This commit is contained in:
parent
82c7b20001
commit
5413041104
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue