diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-09-17 17:53:47 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-09-17 20:36:02 +0300 |
commit | 01e2baa778318150bdd1829836cfff9e677cf72c (patch) | |
tree | 8ee3cd0913f2b4b3e81f869a68413f9789d3e43e /src/map.cpp | |
parent | d6da03bf0c4bd2e89429448f2d33c2bdc5083733 (diff) | |
download | mv-01e2baa778318150bdd1829836cfff9e677cf72c.tar.gz mv-01e2baa778318150bdd1829836cfff9e677cf72c.tar.bz2 mv-01e2baa778318150bdd1829836cfff9e677cf72c.tar.xz mv-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.cpp | 7 |
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); +} |