diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-05-17 00:17:13 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-05-17 00:17:13 +0300 |
commit | 26f2c689298bb2077000b81ff3fe14328a89feb8 (patch) | |
tree | 2821e64165ca0ee2b7f18fb8ec3f53bf1f52a0a7 /src/resources/map | |
parent | e528b472ec803ecdec29e9e19c037c83adf30c1f (diff) | |
download | manaplus-26f2c689298bb2077000b81ff3fe14328a89feb8.tar.gz manaplus-26f2c689298bb2077000b81ff3fe14328a89feb8.tar.bz2 manaplus-26f2c689298bb2077000b81ff3fe14328a89feb8.tar.xz manaplus-26f2c689298bb2077000b81ff3fe14328a89feb8.zip |
Fix code style.
Diffstat (limited to 'src/resources/map')
-rw-r--r-- | src/resources/map/maplayer.cpp | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/src/resources/map/maplayer.cpp b/src/resources/map/maplayer.cpp index ef1c1961c..2389de12b 100644 --- a/src/resources/map/maplayer.cpp +++ b/src/resources/map/maplayer.cpp @@ -37,7 +37,6 @@ #include "resources/map/mapitem.h" #include "resources/map/maprowvertexes.h" -#include "resources/map/maptype.h" #include "resources/map/speciallayer.h" #include "debug.h" @@ -401,8 +400,8 @@ void MapLayer::drawFringe(Graphics *const graphics, int startX, int startY, const int y32s = (y + mActorsFix) * mapTileSize; BLOCK_START("MapLayer::drawFringe drawmobs") - // If drawing the fringe layer, make sure all actors above this row of - // tiles have been drawn + // If drawing the fringe layer, make sure all actors above this + // row of tiles have been drawn while (ai != ai_end && (*ai)->getSortPixelY() <= y32s) { (*ai)->draw(graphics, -scrollX, -scrollY); @@ -446,8 +445,8 @@ void MapLayer::drawFringe(Graphics *const graphics, int startX, int startY, const int y32s = (y + mActorsFix) * mapTileSize; BLOCK_START("MapLayer::drawFringe drawmobs") - // If drawing the fringe layer, make sure all actors above this row of - // tiles have been drawn + // If drawing the fringe layer, make sure all actors above this + // row of tiles have been drawn while (ai != ai_end && (*ai)->getSortPixelY() <= y32s) { (*ai)->draw(graphics, -scrollX, -scrollY); @@ -465,8 +464,8 @@ void MapLayer::drawFringe(Graphics *const graphics, int startX, int startY, const int yWidth = y * mWidth; BLOCK_START("MapLayer::drawFringe drawmobs") - // If drawing the fringe layer, make sure all actors above this row of - // tiles have been drawn + // If drawing the fringe layer, make sure all actors above this + // row of tiles have been drawn while (ai != ai_end && (*ai)->getSortPixelY() <= y32s) { (*ai)->draw(graphics, -scrollX, -scrollY); @@ -551,8 +550,8 @@ void MapLayer::drawFringe(Graphics *const graphics, int startX, int startY, const int yWidth = y * mWidth; BLOCK_START("MapLayer::drawFringe drawmobs") - // If drawing the fringe layer, make sure all actors above this row of - // tiles have been drawn + // If drawing the fringe layer, make sure all actors above this + // row of tiles have been drawn while (ai != ai_end && (*ai)->getSortPixelY() <= y32s) { (*ai)->draw(graphics, -scrollX, -scrollY); @@ -566,12 +565,12 @@ void MapLayer::drawFringe(Graphics *const graphics, int startX, int startY, for (int x = startX; x < endX; x++, tilePtr++) { const int x32 = x * mapTileSize; - int c = 0; const Image *const img = *tilePtr; if (img) { const int px = x32 + dx; const int py = py0 - img->mBounds.h; + int c = 0; if (mSpecialFlag || img->mBounds.h <= mapTileSize) { int width = 0; |