summaryrefslogtreecommitdiff
path: root/src
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
parent4f637fe6d2f528a40763c5bae23ba05137995827 (diff)
downloadmanaplus-2cbe9ac217ebc0212b5bc9c69f6b95d7f141e962.tar.gz
manaplus-2cbe9ac217ebc0212b5bc9c69f6b95d7f141e962.tar.bz2
manaplus-2cbe9ac217ebc0212b5bc9c69f6b95d7f141e962.tar.xz
manaplus-2cbe9ac217ebc0212b5bc9c69f6b95d7f141e962.zip
remove unused variable from maplayer.
Diffstat (limited to 'src')
-rw-r--r--src/map.cpp2
-rw-r--r--src/maplayer.cpp6
-rw-r--r--src/maplayer.h4
3 files changed, 4 insertions, 8 deletions
diff --git a/src/map.cpp b/src/map.cpp
index 652f1c041..564f673da 100644
--- a/src/map.cpp
+++ b/src/map.cpp
@@ -161,7 +161,7 @@ Map::Map(const int width, const int height,
mActorFixY(0),
mVersion(0),
mSpecialLayer(new SpecialLayer(width, height)),
- mTempLayer(new SpecialLayer(width, height, true)),
+ mTempLayer(new SpecialLayer(width, height)),
mObjects(new ObjectsLayer(width, height)),
mFringeLayer(nullptr),
mLastX(-1),
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));
}
diff --git a/src/maplayer.h b/src/maplayer.h
index 62c6e86b7..ad74ad7d2 100644
--- a/src/maplayer.h
+++ b/src/maplayer.h
@@ -200,8 +200,7 @@ class SpecialLayer final
friend class Map;
friend class MapLayer;
- SpecialLayer(const int width, const int height,
- const bool drawSprites = false);
+ SpecialLayer(const int width, const int height);
A_DELETE_COPY(SpecialLayer)
@@ -225,7 +224,6 @@ class SpecialLayer final
int mWidth;
int mHeight;
MapItem **mTiles;
- bool mDrawSprites;
};
class MapItem final