diff options
author | Philipp Sehmisch <mana@crushnet.org> | 2010-03-07 17:55:44 +0100 |
---|---|---|
committer | Philipp Sehmisch <mana@crushnet.org> | 2010-03-07 17:55:44 +0100 |
commit | 8eafd18df42963c0aab1aef8911ce61d51448c16 (patch) | |
tree | 49f04bcf5bd442de051a1bf06afb5adca0ec46b1 /src/resources/mapreader.cpp | |
parent | 3a447afa534573ed4a014372c687ef4028d16760 (diff) | |
download | mana-8eafd18df42963c0aab1aef8911ce61d51448c16.tar.gz mana-8eafd18df42963c0aab1aef8911ce61d51448c16.tar.bz2 mana-8eafd18df42963c0aab1aef8911ce61d51448c16.tar.xz mana-8eafd18df42963c0aab1aef8911ce61d51448c16.zip |
Added config option for disabling particle effects on map warps.
Reviewed-by: Jared Adams
Diffstat (limited to 'src/resources/mapreader.cpp')
-rw-r--r-- | src/resources/mapreader.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/resources/mapreader.cpp b/src/resources/mapreader.cpp index d8678362..0f7ad749 100644 --- a/src/resources/mapreader.cpp +++ b/src/resources/mapreader.cpp @@ -21,6 +21,7 @@ #include "resources/mapreader.h" +#include "configuration.h" #include "log.h" #include "map.h" #include "tileset.h" @@ -291,8 +292,12 @@ Map *MapReader::readMap(xmlNodePtr node, const std::string &path) } else if (objType == "WARP") { - map->addParticleEffect("graphics/particles/warparea.particle.xml", - objX, objY, objW, objH); + if (config.getValue("showWarps", 1)) + { + map->addParticleEffect( + "graphics/particles/warparea.particle.xml", + objX, objY, objW, objH); + } } else { |