diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-02-25 03:35:52 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-02-25 03:35:52 +0300 |
commit | 8478d540748edccf36dc9bda5f0c3de0aa7bf763 (patch) | |
tree | 941a08937450982abb8781e8dd4bd4bd209cf88c /src/game.cpp | |
parent | 6ce49efadfadd8eacb048df274979736bb04daf0 (diff) | |
download | plus-8478d540748edccf36dc9bda5f0c3de0aa7bf763.tar.gz plus-8478d540748edccf36dc9bda5f0c3de0aa7bf763.tar.bz2 plus-8478d540748edccf36dc9bda5f0c3de0aa7bf763.tar.xz plus-8478d540748edccf36dc9bda5f0c3de0aa7bf763.zip |
Improve string usage in other files.
Diffstat (limited to 'src/game.cpp')
-rw-r--r-- | src/game.cpp | 10 |
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); |