summaryrefslogtreecommitdiff
path: root/src/resources/mapreader.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-03-19 00:27:45 +0200
committerAndrei Karas <akaras@inbox.ru>2011-03-19 00:27:45 +0200
commitb2ac4def24379db588ffa52ca63676710f18b4fc (patch)
tree09a76cb672d032cd6b8f41fd3f5afc6c3836839f /src/resources/mapreader.cpp
parentf4792bc06f21335fc2d1171d937ea7645ca0c253 (diff)
downloadplus-b2ac4def24379db588ffa52ca63676710f18b4fc.tar.gz
plus-b2ac4def24379db588ffa52ca63676710f18b4fc.tar.bz2
plus-b2ac4def24379db588ffa52ca63676710f18b4fc.tar.xz
plus-b2ac4def24379db588ffa52ca63676710f18b4fc.zip
Fix code style and add small optimisations.
Diffstat (limited to 'src/resources/mapreader.cpp')
-rw-r--r--src/resources/mapreader.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/resources/mapreader.cpp b/src/resources/mapreader.cpp
index d66e2dbe3..d930bf083 100644
--- a/src/resources/mapreader.cpp
+++ b/src/resources/mapreader.cpp
@@ -197,7 +197,8 @@ Map *MapReader::readMap(const std::string &filename,
unsigned char *inflated;
unsigned int inflatedSize;
- if (realFilename.find(".gz", realFilename.length() - 3) != std::string::npos)
+ if (realFilename.find(".gz", realFilename.length() - 3)
+ != std::string::npos)
{
// Inflate the gzipped map data
inflatedSize = inflateMemory(static_cast<unsigned char*>(buffer),
@@ -232,7 +233,8 @@ Map *MapReader::readMap(const std::string &filename,
}
else
{
- logger->log("Error while parsing map file (%s)!", realFilename.c_str());
+ logger->log("Error while parsing map file (%s)!",
+ realFilename.c_str());
}
if (map)