core/smn_maplists.cpp
changeset 1749 905059740767
parent 1747 9cb38fd5579b
child 1778 429a10ab4b67
     1.1 --- a/core/smn_maplists.cpp	Mon Dec 03 02:27:59 2007 +0000
     1.2 +++ b/core/smn_maplists.cpp	Mon Dec 03 02:43:42 2007 +0000
     1.3 @@ -500,9 +500,16 @@
     1.4  
     1.5  		if (m_pMapCycleFile != NULL && strcmp(name, "mapcyclefile") == 0)
     1.6  		{
     1.7 -			if (strcmp(m_pMapCycleFile->GetString(), pMapList->path) != 0)
     1.8 +			char path[PLATFORM_MAX_PATH];
     1.9 +			g_SourceMod.BuildPath(Path_Game,
    1.10 +				path, 
    1.11 +				sizeof(path),
    1.12 +				"%s",
    1.13 +				m_pMapCycleFile ? m_pMapCycleFile->GetString() : "mapcycle.txt");
    1.14 +
    1.15 +			if (strcmp(path, pMapList->path) != 0)
    1.16  			{
    1.17 -				strncopy(pMapList->path, m_pMapCycleFile->GetString(), sizeof(pMapList->path));
    1.18 +				strncopy(pMapList->path, path, sizeof(pMapList->path));
    1.19  				pMapList->last_modified_time = 0;
    1.20  			}
    1.21  		}