mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
Get rid of trailing spaces
This commit is contained in:
parent
c1a4a95d61
commit
1d84d0db07
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue