mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-12 19:18:20 +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());
|
strcpy(aMap, pData->m_pSqlData->m_pResults->getString("Map").c_str());
|
||||||
char aServer[32];
|
char aServer[32];
|
||||||
strcpy(aServer, pData->m_pSqlData->m_pResults->getString("Server").c_str());
|
strcpy(aServer, pData->m_pSqlData->m_pResults->getString("Server").c_str());
|
||||||
|
|
||||||
|
for(char *p = aServer; *p; p++)
|
||||||
|
*p = tolower(*p);
|
||||||
|
|
||||||
char aCmd[256];
|
char aCmd[256];
|
||||||
str_format(aCmd, sizeof(aCmd), "sv_reset_file types/%s/flexreset.cfg; change_map \"%s\"", aServer, aMap);
|
str_format(aCmd, sizeof(aCmd), "sv_reset_file types/%s/flexreset.cfg; change_map \"%s\"", aServer, aMap);
|
||||||
char aChatmsg[512];
|
char aChatmsg[512];
|
||||||
|
|
Loading…
Reference in a new issue