aboutsummaryrefslogtreecommitdiff
path: root/src/server/collision/Maps/MapTree.cpp
diff options
context:
space:
mode:
authorSpp- <u84280@epreinf21.(none)>2011-07-29 14:18:28 +0200
committerSpp- <u84280@epreinf21.(none)>2011-07-29 14:18:28 +0200
commite47b96af3e3a41eae71e3e3da7eeee8bd3de86bc (patch)
tree07d5ff1e6e39d792dbe1a89cc373c06702817787 /src/server/collision/Maps/MapTree.cpp
parent06b46ba203d30cc5e2abc9741b2fc737ebdd7c38 (diff)
Core: Append single character to stream as character, not as a string
Diffstat (limited to 'src/server/collision/Maps/MapTree.cpp')
-rw-r--r--src/server/collision/Maps/MapTree.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/server/collision/Maps/MapTree.cpp b/src/server/collision/Maps/MapTree.cpp
index 632b4138c85..c8a0a19d6e6 100644
--- a/src/server/collision/Maps/MapTree.cpp
+++ b/src/server/collision/Maps/MapTree.cpp
@@ -95,9 +95,9 @@ namespace VMAP
{
std::stringstream tilefilename;
tilefilename.fill('0');
- tilefilename << std::setw(3) << mapID << "_";
- //tilefilename << std::setw(2) << tileX << "_" << std::setw(2) << tileY << ".vmtile";
- tilefilename << std::setw(2) << tileY << "_" << std::setw(2) << tileX << ".vmtile";
+ tilefilename << std::setw(3) << mapID << '_';
+ //tilefilename << std::setw(2) << tileX << '_' << std::setw(2) << tileY << ".vmtile";
+ tilefilename << std::setw(2) << tileY << '_' << std::setw(2) << tileX << ".vmtile";
return tilefilename.str();
}
@@ -129,7 +129,7 @@ namespace VMAP
{
if (iBasePath.length() > 0 && (iBasePath[iBasePath.length()-1] != '/' || iBasePath[iBasePath.length()-1] != '\\'))
{
- iBasePath.append("/");
+ iBasePath.push_back('/');
}
}
@@ -242,7 +242,7 @@ namespace VMAP
{
std::string basePath = vmapPath;
if (basePath.length() > 0 && (basePath[basePath.length()-1] != '/' || basePath[basePath.length()-1] != '\\'))
- basePath.append("/");
+ basePath.push_back('/');
std::string fullname = basePath + VMapManager2::getMapFileName(mapID);
bool success = true;
FILE *rf = fopen(fullname.c_str(), "rb");