diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-05-16 18:22:32 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-05-16 18:22:32 +0300 |
commit | 124cc470b5d66a7e2d1b2f49b5cccc0832db6779 (patch) | |
tree | b7def5f3d2c3b222f059bb1624beb00a691daefc /src/resources/map/maplayer.cpp | |
parent | 66f0468b3c2e8bd9ff26f082c9a57b77188d6e54 (diff) | |
download | mv-124cc470b5d66a7e2d1b2f49b5cccc0832db6779.tar.gz mv-124cc470b5d66a7e2d1b2f49b5cccc0832db6779.tar.bz2 mv-124cc470b5d66a7e2d1b2f49b5cccc0832db6779.tar.xz mv-124cc470b5d66a7e2d1b2f49b5cccc0832db6779.zip |
Remove parameter from fringe layer draw function.
Diffstat (limited to 'src/resources/map/maplayer.cpp')
-rw-r--r-- | src/resources/map/maplayer.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/resources/map/maplayer.cpp b/src/resources/map/maplayer.cpp index ae012cb8e..ef1c1961c 100644 --- a/src/resources/map/maplayer.cpp +++ b/src/resources/map/maplayer.cpp @@ -56,6 +56,7 @@ MapLayer::MapLayer(const int x, const int y, mTempLayer(nullptr), mTempRows(), mMask(mask), + mActorsFix(0), mIsFringeLayer(fringeLayer), mHighlightAttackRange(config.getBoolValue("highlightAttackRange")), mSpecialFlag(true) @@ -354,8 +355,7 @@ void MapLayer::drawOGL(Graphics *const graphics) const void MapLayer::drawFringe(Graphics *const graphics, 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 { BLOCK_START("MapLayer::drawFringe") if (!localPlayer || !mSpecialLayer || !mTempLayer) @@ -398,7 +398,7 @@ void MapLayer::drawFringe(Graphics *const graphics, int startX, int startY, for (int y = startY; y < minEndY; y ++) { const int y32 = y * mapTileSize; - const int y32s = (y + yFix) * mapTileSize; + const int y32s = (y + mActorsFix) * mapTileSize; BLOCK_START("MapLayer::drawFringe drawmobs") // If drawing the fringe layer, make sure all actors above this row of @@ -443,7 +443,7 @@ void MapLayer::drawFringe(Graphics *const graphics, int startX, int startY, for (int y = minEndY; y < endY; y++) { - const int y32s = (y + yFix) * mapTileSize; + const int y32s = (y + mActorsFix) * mapTileSize; BLOCK_START("MapLayer::drawFringe drawmobs") // If drawing the fringe layer, make sure all actors above this row of @@ -461,7 +461,7 @@ void MapLayer::drawFringe(Graphics *const graphics, int startX, int startY, for (int y = startY; y < minEndY; y ++) { const int y32 = y * mapTileSize; - const int y32s = (y + yFix) * mapTileSize; + const int y32s = (y + mActorsFix) * mapTileSize; const int yWidth = y * mWidth; BLOCK_START("MapLayer::drawFringe drawmobs") @@ -547,7 +547,7 @@ void MapLayer::drawFringe(Graphics *const graphics, int startX, int startY, for (int y = minEndY; y < endY; y++) { const int y32 = y * mapTileSize; - const int y32s = (y + yFix) * mapTileSize; + const int y32s = (y + mActorsFix) * mapTileSize; const int yWidth = y * mWidth; BLOCK_START("MapLayer::drawFringe drawmobs") |