Prepare switch to mixed case server names

This commit is contained in:
def 2015-07-22 19:56:24 +02:00
parent 0cb50c1805
commit bab961f054

View file

@ -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];