]> git.localhorst.tv Git - l2e.git/commitdiff
added debug render for ladder flag
authorDaniel Karbach <daniel.karbach@localhorst.tv>
Thu, 24 Jan 2013 06:54:59 +0000 (07:54 +0100)
committerDaniel Karbach <daniel.karbach@localhorst.tv>
Thu, 24 Jan 2013 06:54:59 +0000 (07:54 +0100)
src/map/Area.cpp

index e7d6f6635d8b284f7945bc2c5c2729238ccefbef..a2554c31b2bd01b833171909556d4ee7dd6f3441 100644 (file)
@@ -82,6 +82,14 @@ void Area::RenderDebug(SDL_Surface *dest, const graphics::Sprite *tileset, const
                if (tile.BlocksWest()) {
                        sdl::VerticalLine(dest, offset, tileset->Height(), color);
                }
+               if (tile.IsLadder()) {
+                       SDL_Rect rect;
+                       rect.x = offset.X() + (tileset->Width() / 2) - 2;
+                       rect.y = offset.Y();
+                       rect.w = 4;
+                       rect.h = tileset->Height();
+                       SDL_FillRect(dest, &rect, color);
+               }
        }
 }