summaryrefslogtreecommitdiff
path: root/src/resources/map/maplayer.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-04-29 18:43:33 +0300
committerAndrei Karas <akaras@inbox.ru>2016-04-29 18:45:18 +0300
commit373e404d20dd75e46b14451164c0914df100e236 (patch)
tree94686df259dc4b498175081a949d4fd4566185b4 /src/resources/map/maplayer.cpp
parent10fcab46c31bb5c5b44416e6b3bb497e9434f352 (diff)
downloadplus-373e404d20dd75e46b14451164c0914df100e236.tar.gz
plus-373e404d20dd75e46b14451164c0914df100e236.tar.bz2
plus-373e404d20dd75e46b14451164c0914df100e236.tar.xz
plus-373e404d20dd75e46b14451164c0914df100e236.zip
Add name into MapLayer memory object.
Diffstat (limited to 'src/resources/map/maplayer.cpp')
-rw-r--r--src/resources/map/maplayer.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/resources/map/maplayer.cpp b/src/resources/map/maplayer.cpp
index 03901d00a..5d81cfb09 100644
--- a/src/resources/map/maplayer.cpp
+++ b/src/resources/map/maplayer.cpp
@@ -46,7 +46,8 @@
#include "debug.h"
-MapLayer::MapLayer(const int x,
+MapLayer::MapLayer(const std::string &name,
+ const int x,
const int y,
const int width,
const int height,
@@ -63,6 +64,7 @@ MapLayer::MapLayer(const int x,
mDrawLayerFlags(MapType::NORMAL),
mSpecialLayer(nullptr),
mTempLayer(nullptr),
+ mName(name),
mTempRows(),
mMask(mask),
mTileCondition(tileCondition),