summaryrefslogtreecommitdiff
path: root/src/resources/mapreader.cpp
diff options
context:
space:
mode:
authorYohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer>2011-06-17 17:07:23 +0200
committerYohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer>2011-06-17 17:07:23 +0200
commit2e08f723375023e203654381b2a49d63c9565824 (patch)
tree17dc1b1534cf329ff6069c95d98d5814b7248055 /src/resources/mapreader.cpp
parent914d3de7c324cb1ec456892702689718352a7842 (diff)
downloadmana-2e08f723375023e203654381b2a49d63c9565824.tar.gz
mana-2e08f723375023e203654381b2a49d63c9565824.tar.bz2
mana-2e08f723375023e203654381b2a49d63c9565824.tar.xz
mana-2e08f723375023e203654381b2a49d63c9565824.zip
Removed dehardcoded values from the Map and MapLayer classes.
Diffstat (limited to 'src/resources/mapreader.cpp')
-rw-r--r--src/resources/mapreader.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/resources/mapreader.cpp b/src/resources/mapreader.cpp
index 1dd12723..e509e4c2 100644
--- a/src/resources/mapreader.cpp
+++ b/src/resources/mapreader.cpp
@@ -254,7 +254,7 @@ void MapReader::readLayer(xmlNodePtr node, Map *map)
if (!isCollisionLayer)
{
- layer = new MapLayer(offsetX, offsetY, w, h, isFringeLayer);
+ layer = new MapLayer(offsetX, offsetY, w, h, isFringeLayer, map);
map->addLayer(layer);
}