summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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