summaryrefslogtreecommitdiff
path: root/src/resources/mapreader.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-06-24 23:53:51 +0300
committerAndrei Karas <akaras@inbox.ru>2012-06-24 23:53:51 +0300
commit72168639865fb75a4c216b1058dc8412d4c81277 (patch)
tree876e745fe1b5924073faedd53d28a68a83e4593a /src/resources/mapreader.cpp
parentf9feb8f1fd4e2dc56218aba40ef94962fa866f84 (diff)
downloadmanaplus-72168639865fb75a4c216b1058dc8412d4c81277.tar.gz
manaplus-72168639865fb75a4c216b1058dc8412d4c81277.tar.bz2
manaplus-72168639865fb75a4c216b1058dc8412d4c81277.tar.xz
manaplus-72168639865fb75a4c216b1058dc8412d4c81277.zip
Add autodetection walkable tiles in maps without client data.
Diffstat (limited to 'src/resources/mapreader.cpp')
-rw-r--r--src/resources/mapreader.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/resources/mapreader.cpp b/src/resources/mapreader.cpp
index 57524e953..67959b819 100644
--- a/src/resources/mapreader.cpp
+++ b/src/resources/mapreader.cpp
@@ -795,6 +795,9 @@ Map *MapReader::createEmptyMap(const std::string &filename,
{
logger->log("Creating empty map");
Map *map = new Map(300, 300, 32, 32);
+ map->setProperty("_filename", realFilename);
+ map->setProperty("_realfilename", filename);
+ map->setCustom(true);
MapLayer *layer = new MapLayer(0, 0, 300, 300, false);
map->addLayer(layer);
layer = new MapLayer(0, 0, 300, 300, true);