From 242bdb40a032306ad2bf57487e7f23a0c308fe44 Mon Sep 17 00:00:00 2001 From: Daniel Karbach Date: Thu, 24 Jan 2013 07:54:59 +0100 Subject: [PATCH] added debug render for ladder flag --- src/map/Area.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/map/Area.cpp b/src/map/Area.cpp index e7d6f66..a2554c3 100644 --- a/src/map/Area.cpp +++ b/src/map/Area.cpp @@ -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); + } } } -- 2.39.2