From 259c3eb906070ff831a18aaf36f674dabe678faa Mon Sep 17 00:00:00 2001 From: "s.kushnirenko" Date: Wed, 10 Jan 2024 23:16:18 +0100 Subject: [PATCH] mastaba: correct return access tile for mastaba parts --- src/building/figure.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/building/figure.cpp b/src/building/figure.cpp index 5b5290949a..4272559d4f 100644 --- a/src/building/figure.cpp +++ b/src/building/figure.cpp @@ -1321,7 +1321,10 @@ void building::update_month() { tile2i building::access_tile() { switch (type) { case BUILDING_SMALL_MASTABA: - return tile.shifted(0, 10); + case BUILDING_SMALL_MASTABA_ENTRANCE: + case BUILDING_SMALL_MASTABA_WALL: + case BUILDING_SMALL_MASTABA_SIDE: + return main()->tile.shifted(0, 10); } return road_access;