summaryrefslogtreecommitdiff
path: root/src/resources
diff options
context:
space:
mode:
authorPhilipp Sehmisch <crush@themanaworld.org>2009-01-18 14:34:53 +0100
committerIra Rice <irarice@gmail.com>2009-01-18 23:58:34 -0700
commited3a7626a24750803ebe16f528b292ff1b24affa (patch)
tree51bc8deb9419ccfcf8a435b7585deaab7dc4af3f /src/resources
parentadfa6fa21b1ef5c8169538ca5c4896bf86e59d6a (diff)
downloadmana-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')
-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 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;
}