summaryrefslogtreecommitdiff
path: root/src/maplayer.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-10-18 16:33:32 +0300
committerAndrei Karas <akaras@inbox.ru>2013-10-19 15:12:20 +0300
commit2cbe9ac217ebc0212b5bc9c69f6b95d7f141e962 (patch)
treec8811abef9a9812203f8cb527fd25153c9e8d0de /src/maplayer.cpp
parent4f637fe6d2f528a40763c5bae23ba05137995827 (diff)
downloadplus-2cbe9ac217ebc0212b5bc9c69f6b95d7f141e962.tar.gz
plus-2cbe9ac217ebc0212b5bc9c69f6b95d7f141e962.tar.bz2
plus-2cbe9ac217ebc0212b5bc9c69f6b95d7f141e962.tar.xz
plus-2cbe9ac217ebc0212b5bc9c69f6b95d7f141e962.zip
remove unused variable from maplayer.
Diffstat (limited to 'src/maplayer.cpp')
-rw-r--r--src/maplayer.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/maplayer.cpp b/src/maplayer.cpp
index 686ab7a35..67df3930b 100644
--- a/src/maplayer.cpp
+++ b/src/maplayer.cpp
@@ -571,12 +571,10 @@ int MapLayer::getTileDrawWidth(const Image *img,
return c;
}
-SpecialLayer::SpecialLayer(const int width, const int height,
- const bool drawSprites) :
+SpecialLayer::SpecialLayer(const int width, const int height) :
mWidth(width),
mHeight(height),
- mTiles(new MapItem*[mWidth * mHeight]),
- mDrawSprites(drawSprites)
+ mTiles(new MapItem*[mWidth * mHeight])
{
std::fill_n(mTiles, mWidth * mHeight, static_cast<MapItem*>(nullptr));
}