mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
fixed clients search for maps within subfolders
This commit is contained in:
parent
9da43765f3
commit
9cb2f07b80
|
@ -1000,7 +1000,7 @@ const char *CClient::LoadMapSearch(const char *pMapName, int WantedCrc)
|
|||
// search for the map within subfolders
|
||||
char aFilename[128];
|
||||
str_format(aFilename, sizeof(aFilename), "%s.map", pMapName);
|
||||
if(Storage()->FindFile(aFilename, "maps", IStorage::TYPE_ALL, aBuf, sizeof(aBuf)));
|
||||
if(Storage()->FindFile(aFilename, "maps", IStorage::TYPE_ALL, aBuf, sizeof(aBuf)))
|
||||
pError = LoadMap(pMapName, aBuf, WantedCrc);
|
||||
|
||||
return pError;
|
||||
|
|
Loading…
Reference in a new issue