summaryrefslogtreecommitdiff
path: root/src/resources/mapreader.cpp
diff options
context:
space:
mode:
authorPhilipp Sehmisch <crush@themanaworld.org>2009-01-18 14:34:53 +0100
committerPhilipp Sehmisch <crush@themanaworld.org>2009-01-18 14:34:53 +0100
commit2a7c63f6070606e6623a9730aa1ca9d52c942055 (patch)
tree1dc1e47ffcbaa8f217352159f7e4b65105826942 /src/resources/mapreader.cpp
parent833b4ee6b06a0d23781153ad117d638fa9cc9ace (diff)
downloadmana-2a7c63f6070606e6623a9730aa1ca9d52c942055.tar.gz
mana-2a7c63f6070606e6623a9730aa1ca9d52c942055.tar.bz2
mana-2a7c63f6070606e6623a9730aa1ca9d52c942055.tar.xz
mana-2a7c63f6070606e6623a9730aa1ca9d52c942055.zip
Added current map filename to debug window.
Diffstat (limited to 'src/resources/mapreader.cpp')
-rw-r--r--src/resources/mapreader.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/resources/mapreader.cpp b/src/resources/mapreader.cpp
index 949d7913..b812b2ce 100644
--- a/src/resources/mapreader.cpp
+++ b/src/resources/mapreader.cpp
@@ -195,6 +195,8 @@ Map *MapReader::readMap(const std::string &filename)
logger->log("Error while parsing map file (%s)!", filename.c_str());
}
+ if (map) map->setProperty("_filename", filename);
+
return map;
}