diff options
Diffstat (limited to 'src/resources/mapreader.cpp')
-rw-r--r-- | src/resources/mapreader.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/resources/mapreader.cpp b/src/resources/mapreader.cpp index 3279ba77..b5a5e258 100644 --- a/src/resources/mapreader.cpp +++ b/src/resources/mapreader.cpp @@ -193,7 +193,7 @@ Map *MapReader::readMap(XML::Node node, const std::string &path) } else if (objType == "WARP") { - if (config.getValue("showWarps", 1)) + if (config.showWarps) { map->addParticleEffect( paths.getStringValue("particles") @@ -502,7 +502,7 @@ static Tileset *readTileset(XML::Node node, const std::string &path, Tileset *set = nullptr; std::string pathDir(path); - if (node.hasProperty("source")) + if (node.hasAttribute("source")) { std::string filename = node.getProperty("source", std::string()); filename = resolveRelativePath(path, filename); |