1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-29 09:44:52 +01:00

Port remaining wall stuff to struct methods

This commit is contained in:
Michael Steenbeek
2018-09-17 15:42:34 +02:00
parent 508276b081
commit 6062960390
14 changed files with 108 additions and 59 deletions

View File

@@ -3442,7 +3442,7 @@ void map_obstruction_set_error_text(rct_tile_element* tileElement)
}
break;
case TILE_ELEMENT_TYPE_WALL:
sceneryEntry = get_wall_entry(tileElement->properties.wall.type);
sceneryEntry = tileElement->AsWall()->GetEntry();
errorStringId = STR_X_IN_THE_WAY;
set_format_arg(0, rct_string_id, sceneryEntry->name);
break;
@@ -4388,10 +4388,10 @@ void game_command_set_sign_style(
if (tileElement->GetType() != TILE_ELEMENT_TYPE_WALL)
continue;
rct_scenery_entry* scenery_entry = get_wall_entry(tileElement->properties.wall.type);
rct_scenery_entry* scenery_entry = tileElement->AsWall()->GetEntry();
if (scenery_entry->wall.scrolling_mode == 0xFF)
continue;
if (tileElement->properties.wall.banner_index != bannerId)
if (tileElement->AsWall()->GetBannerIndex() != bannerId)
continue;
wall_found = true;
break;