From 01e2baa778318150bdd1829836cfff9e677cf72c Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 17 Sep 2013 17:53:47 +0300 Subject: add walking on map height. using collisions from actual and not drawing tile. still have issue with fringe layer objects. --- src/map.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/map.cpp') diff --git a/src/map.cpp b/src/map.cpp index 86d2171e9..df49b2eb9 100644 --- a/src/map.cpp +++ b/src/map.cpp @@ -1585,3 +1585,10 @@ void Map::addHeights(MapHeights *const heights) delete mHeights; mHeights = heights; } + +uint8_t Map::getHeightOffset(const int x, const int y) const +{ + if (!mHeights) + return 0; + return mHeights->getHeight(x, y); +} -- cgit v1.2.3-70-g09d2