From 124cc470b5d66a7e2d1b2f49b5cccc0832db6779 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 16 May 2015 18:22:32 +0300 Subject: Remove parameter from fringe layer draw function. --- src/resources/map/maplayer.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/resources/map/maplayer.h') diff --git a/src/resources/map/maplayer.h b/src/resources/map/maplayer.h index d02f4f7b1..25773ebb2 100644 --- a/src/resources/map/maplayer.h +++ b/src/resources/map/maplayer.h @@ -110,8 +110,7 @@ class MapLayer final: public ConfigListener int startX, int startY, int endX, int endY, const int scrollX, const int scrollY, - const Actors *const actors, - const int yFix) const; + const Actors *const actors) const; bool isFringeLayer() const A_WARN_UNUSED { return mIsFringeLayer; } @@ -132,6 +131,9 @@ class MapLayer final: public ConfigListener void setDrawLayerFlags(const MapType::MapType &n); + void setActorsFix(const int y) + { mActorsFix = y; } + protected: static int getTileDrawWidth(const Image *img, const int endX, @@ -149,6 +151,7 @@ class MapLayer final: public ConfigListener typedef std::vector MapRows; MapRows mTempRows; int mMask; + int mActorsFix; const bool mIsFringeLayer; /**< Whether the actors are drawn. */ bool mHighlightAttackRange; bool mSpecialFlag; -- cgit v1.2.3-70-g09d2