diff --git a/src/game/server/ddracechat.cpp b/src/game/server/ddracechat.cpp index 088a6ccf5..bfc671d22 100644 --- a/src/game/server/ddracechat.cpp +++ b/src/game/server/ddracechat.cpp @@ -1237,11 +1237,11 @@ void CGameContext::ConSetTimerType(IConsole::IResult *pResult, void *pUserData) return; char aBuf[128]; - + if(pResult->NumArguments() > 0) { int OldType = pPlayer->m_TimerType; - + if(str_comp_nocase(pResult->GetString(0), "gametimer") == 0) { if(pPlayer->m_ClientVersion >= VERSION_DDNET_GAMETICK) @@ -1286,16 +1286,16 @@ void CGameContext::ConSetTimerType(IConsole::IResult *pResult, void *pUserData) pSelf->Console()->Print(IConsole::OUTPUT_LEVEL_STANDARD, "timer", aBuf); return; } - + if((OldType == CPlayer::TIMERTYPE_BROADCAST || OldType == CPlayer::TIMERTYPE_GAMETIMER_AND_BROADCAST) && (pPlayer->m_TimerType == CPlayer::TIMERTYPE_GAMETIMER || pPlayer->m_TimerType == CPlayer::TIMERTYPE_NONE)) pSelf->SendBroadcast("", pResult->m_ClientID); } - + if(pPlayer->m_TimerType <= CPlayer::TIMERTYPE_GAMETIMER_AND_BROADCAST && pPlayer->m_TimerType >= CPlayer::TIMERTYPE_GAMETIMER) str_format(aBuf, sizeof(aBuf), "Timer is displayed in %s", s_aaMsg[pPlayer->m_TimerType]); else if(pPlayer->m_TimerType == CPlayer::TIMERTYPE_NONE) str_format(aBuf, sizeof(aBuf), "Timer isn't displayed."); - + pSelf->Console()->Print(IConsole::OUTPUT_LEVEL_STANDARD, "timer", aBuf); }