summaryrefslogtreecommitdiff
path: root/src/resources
diff options
context:
space:
mode:
Diffstat (limited to 'src/resources')
-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);