mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
Merge #4337
4337: Fix DbgDummy check being at the wrong place r=def- a=heinrich5991 Fixes #4325. ## Checklist - [ ] Tested the change ingame - [ ] Provided screenshots if it is a visual change - [ ] Tested in combination with possibly related configuration options - [ ] Written a unit test if it works standalone, system.c especially - [ ] Considered possible null pointers and out of bounds array indexing - [ ] Changed no physics that affect existing maps - [ ] Tested the change with [ASan+UBSan or valgrind's memcheck](https://github.com/ddnet/ddnet/#using-addresssanitizer--undefinedbehavioursanitizer-or-valgrinds-memcheck) (optional) Co-authored-by: ChillerDragon <ChillerDragon@gmail.com> Co-authored-by: heinrich5991 <heinrich5991@gmail.com>
This commit is contained in:
commit
455ee32754
|
@ -165,21 +165,25 @@ static int PlayerFlags_SixToSeven(int Flags)
|
|||
|
||||
void CPlayer::Tick()
|
||||
{
|
||||
#ifdef CONF_DEBUG
|
||||
if(!g_Config.m_DbgDummies || m_ClientID < MAX_CLIENTS - g_Config.m_DbgDummies)
|
||||
#endif
|
||||
if(m_ScoreQueryResult != nullptr && m_ScoreQueryResult->m_Completed)
|
||||
{
|
||||
ProcessScoreResult(*m_ScoreQueryResult);
|
||||
m_ScoreQueryResult = nullptr;
|
||||
}
|
||||
if(m_ScoreQueryResult != nullptr && m_ScoreQueryResult->m_Completed)
|
||||
{
|
||||
ProcessScoreResult(*m_ScoreQueryResult);
|
||||
m_ScoreQueryResult = nullptr;
|
||||
}
|
||||
if(m_ScoreFinishResult != nullptr && m_ScoreFinishResult->m_Completed)
|
||||
{
|
||||
ProcessScoreResult(*m_ScoreFinishResult);
|
||||
m_ScoreFinishResult = nullptr;
|
||||
}
|
||||
|
||||
if(!Server()->ClientIngame(m_ClientID))
|
||||
bool ClientIngame = Server()->ClientIngame(m_ClientID);
|
||||
#ifdef CONF_DEBUG
|
||||
if(g_Config.m_DbgDummies && m_ClientID >= MAX_CLIENTS - g_Config.m_DbgDummies)
|
||||
{
|
||||
ClientIngame = true;
|
||||
}
|
||||
#endif
|
||||
if(!ClientIngame)
|
||||
return;
|
||||
|
||||
if(m_ChatScore > 0)
|
||||
|
|
Loading…
Reference in a new issue