diff options
Diffstat (limited to 'src/mapheights.h')
-rw-r--r-- | src/mapheights.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mapheights.h b/src/mapheights.h index 51ea885c9..2fd4c44ab 100644 --- a/src/mapheights.h +++ b/src/mapheights.h @@ -36,6 +36,9 @@ class MapHeights final void setHeight(const int x, const int y, const uint8_t height); + uint8_t getHeight(const int x, const int y) const + { return mTiles[x + y * mWidth]; } + private: int mWidth; int mHeight; |