Skip to content

Commit 0d61792

Browse files
authored
Fix ReadMapList ignoring file's last modified time (alliedmodders#1891)
1 parent 515df38 commit 0d61792

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

core/logic/smn_maplists.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -592,7 +592,10 @@ class MapLists : public SMGlobalClass, public ITextListener_SMC
592592
}
593593
}
594594

595-
if (!libsys->FileTime(pMapList->path, FileTime_LastChange, &last_time)
595+
char realpath[PLATFORM_MAX_PATH];
596+
g_pSM->BuildPath(Path_Game, realpath, sizeof(realpath), "%s", pMapList->path);
597+
598+
if (!libsys->FileTime(realpath, FileTime_LastChange, &last_time)
596599
|| last_time > pMapList->last_modified_time)
597600
{
598601
/* Reparse */

0 commit comments

Comments
 (0)