mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-13 03:28:19 +00:00
STL noobness
Signed-off-by: GreYFoXGTi <GreYFoXGTi@GMaiL.CoM>
This commit is contained in:
parent
26f152e656
commit
5cfcee99f9
|
@ -697,7 +697,6 @@ void CGameContext::OnMessage(int MsgId, CUnpacker *pUnpacker, int ClientId)
|
||||||
const char *pt = pMsg->m_pMessage;
|
const char *pt = pMsg->m_pMessage;
|
||||||
std::list<std::string> s;
|
std::list<std::string> s;
|
||||||
std::list<std::string>::iterator i;
|
std::list<std::string>::iterator i;
|
||||||
char buf[64];
|
|
||||||
int number = 0;
|
int number = 0;
|
||||||
pt += 6;
|
pt += 6;
|
||||||
while(*pt && *pt >= '0' && *pt <= '9')
|
while(*pt && *pt >= '0' && *pt <= '9')
|
||||||
|
@ -710,10 +709,7 @@ void CGameContext::OnMessage(int MsgId, CUnpacker *pUnpacker, int ClientId)
|
||||||
else
|
else
|
||||||
s=((CGameControllerDDRace*)m_pController)->m_Score.Top5Draw(ClientId, 0);
|
s=((CGameControllerDDRace*)m_pController)->m_Score.Top5Draw(ClientId, 0);
|
||||||
for(i=s.begin(); i != s.end(); ++i)
|
for(i=s.begin(); i != s.end(); ++i)
|
||||||
{
|
SendChatTarget(ClientId, i->c_str());
|
||||||
str_format(buf, sizeof(buf), "%s",*i);
|
|
||||||
SendChatTarget(ClientId, buf);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
else if(!str_comp_nocase(pMsg->m_pMessage, "/rank"))
|
else if(!str_comp_nocase(pMsg->m_pMessage, "/rank"))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue