summaryrefslogtreecommitdiff
path: root/src/game.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-02-25 03:35:52 +0300
committerAndrei Karas <akaras@inbox.ru>2013-02-25 03:35:52 +0300
commit8478d540748edccf36dc9bda5f0c3de0aa7bf763 (patch)
tree941a08937450982abb8781e8dd4bd4bd209cf88c /src/game.cpp
parent6ce49efadfadd8eacb048df274979736bb04daf0 (diff)
downloadmanaverse-8478d540748edccf36dc9bda5f0c3de0aa7bf763.tar.gz
manaverse-8478d540748edccf36dc9bda5f0c3de0aa7bf763.tar.bz2
manaverse-8478d540748edccf36dc9bda5f0c3de0aa7bf763.tar.xz
manaverse-8478d540748edccf36dc9bda5f0c3de0aa7bf763.zip
Improve string usage in other files.
Diffstat (limited to 'src/game.cpp')
-rw-r--r--src/game.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/game.cpp b/src/game.cpp
index 2112b4e27..eb1d573e6 100644
--- a/src/game.cpp
+++ b/src/game.cpp
@@ -1008,14 +1008,14 @@ void Game::changeMap(const std::string &mapPath)
mMapName = mapPath;
- std::string fullMap = paths.getValue("maps", "maps/")
- + mMapName + ".tmx";
- std::string realFullMap = paths.getValue("maps", "maps/")
- + MapDB::getMapName(mMapName) + ".tmx";
+ std::string fullMap = paths.getValue("maps", "maps/").append(
+ mMapName).append(".tmx");
+ std::string realFullMap = paths.getValue("maps", "maps/").append(
+ MapDB::getMapName(mMapName)).append(".tmx");
const ResourceManager *const resman = ResourceManager::getInstance();
if (!resman->exists(realFullMap))
- realFullMap += ".gz";
+ realFullMap.append(".gz");
// Attempt to load the new map
Map *const newMap = MapReader::readMap(fullMap, realFullMap);