diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-04-03 02:12:42 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-04-03 18:44:58 +0300 |
commit | 9e72886ee15acc39cbb6075ce32a60a5391ea9f3 (patch) | |
tree | fd7d0b05eeaed5ab0016cad58772cab7456f36b4 /src/resources/map | |
parent | 49631972db5b965413d4bbe36983a8d5bd203183 (diff) | |
download | plus-9e72886ee15acc39cbb6075ce32a60a5391ea9f3.tar.gz plus-9e72886ee15acc39cbb6075ce32a60a5391ea9f3.tar.bz2 plus-9e72886ee15acc39cbb6075ce32a60a5391ea9f3.tar.xz plus-9e72886ee15acc39cbb6075ce32a60a5391ea9f3.zip |
Replace string::append with pathJoin.
Diffstat (limited to 'src/resources/map')
-rw-r--r-- | src/resources/map/map.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/resources/map/map.cpp b/src/resources/map/map.cpp index b7e5d1fca..c24e3752e 100644 --- a/src/resources/map/map.cpp +++ b/src/resources/map/map.cpp @@ -1135,8 +1135,8 @@ void Map::addExtraLayer() restrict2 BLOCK_END("Map::addExtraLayer") return; } - const std::string mapFileName = getUserMapDirectory().append( - "/extralayer.txt"); + const std::string mapFileName = pathJoin(getUserMapDirectory(), + "extralayer.txt"); logger->log("loading extra layer: " + mapFileName); struct stat statbuf; if (!stat(mapFileName.c_str(), &statbuf) && S_ISREG(statbuf.st_mode)) @@ -1208,8 +1208,8 @@ void Map::saveExtraLayer() const restrict2 logger->log1("No special layer"); return; } - const std::string mapFileName = getUserMapDirectory().append( - "/extralayer.txt"); + const std::string mapFileName = pathJoin(getUserMapDirectory(), + "extralayer.txt"); logger->log("saving extra layer: " + mapFileName); if (mkdir_r(getUserMapDirectory().c_str())) |