summaryrefslogtreecommitdiff
path: root/src/resources/mapreader.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-06-09 00:18:08 +0300
committerAndrei Karas <akaras@inbox.ru>2017-06-09 00:18:08 +0300
commitc6ac11341bd99cbe5eeb4275b9b2473e21338d5e (patch)
treebb7589c232ad54bfd037ae016ee0991342ebccfa /src/resources/mapreader.cpp
parent9f1470325518a8ee5b6c0c2c1254ab4dccac0f63 (diff)
downloadplus-c6ac11341bd99cbe5eeb4275b9b2473e21338d5e.tar.gz
plus-c6ac11341bd99cbe5eeb4275b9b2473e21338d5e.tar.bz2
plus-c6ac11341bd99cbe5eeb4275b9b2473e21338d5e.tar.xz
plus-c6ac11341bd99cbe5eeb4275b9b2473e21338d5e.zip
Fix code style.
Diffstat (limited to 'src/resources/mapreader.cpp')
-rw-r--r--src/resources/mapreader.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/resources/mapreader.cpp b/src/resources/mapreader.cpp
index b795b5e0f..22fcd7bd8 100644
--- a/src/resources/mapreader.cpp
+++ b/src/resources/mapreader.cpp
@@ -564,8 +564,8 @@ inline static void setTile(Map *const map,
{
case MapLayerType::TILES:
{
- Image *const img = set != nullptr ? set->get(gid - set->getFirstGid())
- : nullptr;
+ Image *const img = set != nullptr ?
+ set->get(gid - set->getFirstGid()) : nullptr;
if (layer != nullptr)
layer->setTile(x, y, img);
break;
@@ -1192,7 +1192,8 @@ Tileset *MapReader::readTileset(XmlNodePtr node,
}
// create animation
- if ((set == nullptr) || !config.getBoolValue("playMapAnimations"))
+ if (set == nullptr ||
+ !config.getBoolValue("playMapAnimations"))
{
delete ani;
continue;