From 8478d540748edccf36dc9bda5f0c3de0aa7bf763 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 25 Feb 2013 03:35:52 +0300 Subject: Improve string usage in other files. --- src/game.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/game.cpp') 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); -- cgit v1.2.3-60-g2f50