summaryrefslogtreecommitdiff
path: root/src/map.cpp
diff options
context:
space:
mode:
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);
+}