diff options
author | Philipp Sehmisch <crush@themanaworld.org> | 2009-01-18 14:34:53 +0100 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2009-01-20 20:48:19 +0100 |
commit | b032adccbc64ebe316c72c7b541d7edf61f27ef5 (patch) | |
tree | 7d5be9fc04d3312c226daee03bcf7fe77df57c63 /src/resources/mapreader.cpp | |
parent | 8f741827bec1b615769a59014cbbd634056aaa25 (diff) | |
download | mana-client-b032adccbc64ebe316c72c7b541d7edf61f27ef5.tar.gz mana-client-b032adccbc64ebe316c72c7b541d7edf61f27ef5.tar.bz2 mana-client-b032adccbc64ebe316c72c7b541d7edf61f27ef5.tar.xz mana-client-b032adccbc64ebe316c72c7b541d7edf61f27ef5.zip |
Added current map filename to debug window.
(cherry picked from mainline commit 2a7c63f6070606e6623a9730aa1ca9d52c942055)
Diffstat (limited to 'src/resources/mapreader.cpp')
-rw-r--r-- | src/resources/mapreader.cpp | 2 |
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; } |