summaryrefslogtreecommitdiff
path: root/src/map.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-09-17 17:53:47 +0300
committerAndrei Karas <akaras@inbox.ru>2013-09-17 20:36:02 +0300
commit01e2baa778318150bdd1829836cfff9e677cf72c (patch)
tree8ee3cd0913f2b4b3e81f869a68413f9789d3e43e /src/map.cpp
parentd6da03bf0c4bd2e89429448f2d33c2bdc5083733 (diff)
downloadplus-01e2baa778318150bdd1829836cfff9e677cf72c.tar.gz
plus-01e2baa778318150bdd1829836cfff9e677cf72c.tar.bz2
plus-01e2baa778318150bdd1829836cfff9e677cf72c.tar.xz
plus-01e2baa778318150bdd1829836cfff9e677cf72c.zip
add walking on map height.
using collisions from actual and not drawing tile. still have issue with fringe layer objects.
Diffstat (limited to 'src/map.cpp')
-rw-r--r--src/map.cpp7
1 files changed, 7 insertions, 0 deletions
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);
+}