X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;ds=inline;f=src%2Fmap%2FArea.cpp;h=a2554c31b2bd01b833171909556d4ee7dd6f3441;hb=0911d263c10cca314305799d5b839ee9653cac0b;hp=2c7f1b8b7987d50fc477b7b8f5c3af501899344b;hpb=a3ba4dc677ad7c92eeb78b20b642241563605c9d;p=l2e.git diff --git a/src/map/Area.cpp b/src/map/Area.cpp index 2c7f1b8..a2554c3 100644 --- a/src/map/Area.cpp +++ b/src/map/Area.cpp @@ -4,6 +4,7 @@ #include "../graphics/Sprite.h" #include "../loader/TypeDescription.h" #include "../loader/Interpreter.h" +#include "../math/Vector.h" #include "../sdl/utility.h" #include @@ -81,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); + } } }