summaryrefslogtreecommitdiff
path: root/src/resources
diff options
context:
space:
mode:
authorPhilipp Sehmisch <crush@themanaworld.org>2009-01-18 14:34:53 +0100
committerBjørn Lindeijer <bjorn@lindeijer.nl>2009-01-20 20:48:19 +0100
commitb032adccbc64ebe316c72c7b541d7edf61f27ef5 (patch)
tree7d5be9fc04d3312c226daee03bcf7fe77df57c63 /src/resources
parent8f741827bec1b615769a59014cbbd634056aaa25 (diff)
downloadmana-b032adccbc64ebe316c72c7b541d7edf61f27ef5.tar.gz
mana-b032adccbc64ebe316c72c7b541d7edf61f27ef5.tar.bz2
mana-b032adccbc64ebe316c72c7b541d7edf61f27ef5.tar.xz
mana-b032adccbc64ebe316c72c7b541d7edf61f27ef5.zip
Added current map filename to debug window.
(cherry picked from mainline commit 2a7c63f6070606e6623a9730aa1ca9d52c942055)
Diffstat (limited to 'src/resources')
-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 15fbf68a..927ea679 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;
}