summaryrefslogtreecommitdiff
path: root/src/map.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/map.cpp')
-rw-r--r--src/map.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/map.cpp b/src/map.cpp
index 3ea9989a4..b8767e5e4 100644
--- a/src/map.cpp
+++ b/src/map.cpp
@@ -42,6 +42,7 @@
#include "utils/mkdir.h"
#include <limits.h>
+#include <physfs.h>
#include <sys/stat.h>
@@ -1251,7 +1252,7 @@ void Map::saveExtraLayer()
std::string Map::getUserMapDirectory() const
{
- return Client::getServerConfigDirectory() + "/"
+ return Client::getServerConfigDirectory() + PHYSFS_getDirSeparator()
+ getProperty("_realfilename");
}