diff options
author | Philipp Sehmisch <crush@themanaworld.org> | 2009-01-18 14:34:53 +0100 |
---|---|---|
committer | Ira Rice <irarice@gmail.com> | 2009-01-18 23:58:34 -0700 |
commit | ed3a7626a24750803ebe16f528b292ff1b24affa (patch) | |
tree | 51bc8deb9419ccfcf8a435b7585deaab7dc4af3f /src/resources/mapreader.cpp | |
parent | adfa6fa21b1ef5c8169538ca5c4896bf86e59d6a (diff) | |
download | mana-ed3a7626a24750803ebe16f528b292ff1b24affa.tar.gz mana-ed3a7626a24750803ebe16f528b292ff1b24affa.tar.bz2 mana-ed3a7626a24750803ebe16f528b292ff1b24affa.tar.xz mana-ed3a7626a24750803ebe16f528b292ff1b24affa.zip |
Added current map filename to debug window.
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 802199f1..0082a024 100644 --- a/src/resources/mapreader.cpp +++ b/src/resources/mapreader.cpp @@ -194,6 +194,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; } |