Skip to content

Commit

Permalink
mastaba: correct return access tile for mastaba parts
Browse files Browse the repository at this point in the history
  • Loading branch information
s.kushnirenko committed Jan 10, 2024
1 parent 53550dd commit 259c3eb
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/building/figure.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 259c3eb

Please sign in to comment.