diff --git a/src/game/game.cpp b/src/game/game.cpp index 2522e638a..97cadd1e7 100644 --- a/src/game/game.cpp +++ b/src/game/game.cpp @@ -168,6 +168,10 @@ global void CreateGame(char* filename, WorldMap* map) // FIXME: LibraryFile here? if (filename[0] != '/' && filename[0] != '.') { s = filename = strdcat3(FreeCraftLibPath, "/", filename); + strcpy(CurrentMapPath, strchr(filename,'/')+1); + } + else { + strcpy(CurrentMapPath, filename); } // // Load the map.