mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
Make control flow not depend on preprocessor macros
This commit is contained in:
parent
de2f820c90
commit
210b3d1fb2
|
@ -176,11 +176,15 @@ void CPlayer::Tick()
|
|||
m_ScoreFinishResult = nullptr;
|
||||
}
|
||||
|
||||
bool ClientIngame = Server()->ClientIngame(m_ClientID);
|
||||
#ifdef CONF_DEBUG
|
||||
if(!g_Config.m_DbgDummies || m_ClientID < MAX_CLIENTS - g_Config.m_DbgDummies)
|
||||
if(g_Config.m_DbgDummies && m_ClientID >= MAX_CLIENTS - g_Config.m_DbgDummies)
|
||||
{
|
||||
ClientIngame = true;
|
||||
}
|
||||
#endif
|
||||
if(!Server()->ClientIngame(m_ClientID))
|
||||
return;
|
||||
if(!ClientIngame)
|
||||
return;
|
||||
|
||||
if(m_ChatScore > 0)
|
||||
m_ChatScore--;
|
||||
|
|
Loading…
Reference in a new issue