mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
Prepare switch to mixed case server names
This commit is contained in:
parent
0cb50c1805
commit
bab961f054
|
@ -477,6 +477,10 @@ void CSqlScore::MapVoteThread(void *pUser)
|
|||
strcpy(aMap, pData->m_pSqlData->m_pResults->getString("Map").c_str());
|
||||
char aServer[32];
|
||||
strcpy(aServer, pData->m_pSqlData->m_pResults->getString("Server").c_str());
|
||||
|
||||
for(char *p = aServer; *p; p++)
|
||||
*p = tolower(*p);
|
||||
|
||||
char aCmd[256];
|
||||
str_format(aCmd, sizeof(aCmd), "sv_reset_file types/%s/flexreset.cfg; change_map \"%s\"", aServer, aMap);
|
||||
char aChatmsg[512];
|
||||
|
|
Loading…
Reference in a new issue