summaryrefslogtreecommitdiff
path: root/src/resources/mapreader.cpp
diff options
context:
space:
mode:
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;