fixed amb1210 - ReadMapList() broken for "mapcyclefile"

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401755
This commit is contained in:
David Anderson 2007-12-03 02:43:42 +00:00
parent 049eff8336
commit 6533e16019

View File

@ -500,9 +500,16 @@ private:
if (m_pMapCycleFile != NULL && strcmp(name, "mapcyclefile") == 0)
{
if (strcmp(m_pMapCycleFile->GetString(), pMapList->path) != 0)
char path[PLATFORM_MAX_PATH];
g_SourceMod.BuildPath(Path_Game,
path,
sizeof(path),
"%s",
m_pMapCycleFile ? m_pMapCycleFile->GetString() : "mapcycle.txt");
if (strcmp(path, pMapList->path) != 0)
{
strncopy(pMapList->path, m_pMapCycleFile->GetString(), sizeof(pMapList->path));
strncopy(pMapList->path, path, sizeof(pMapList->path));
pMapList->last_modified_time = 0;
}
}