diff --git a/src/openrct2/ride/TrackDesignSave.cpp b/src/openrct2/ride/TrackDesignSave.cpp index eacdc0125d..bf4fd4ce36 100644 --- a/src/openrct2/ride/TrackDesignSave.cpp +++ b/src/openrct2/ride/TrackDesignSave.cpp @@ -291,7 +291,7 @@ static void track_design_save_push_tile_element_desc( static void track_design_save_add_scenery(int32_t x, int32_t y, rct_tile_element* tileElement) { - SmallSceneryElement * sceneryElement = tileElement->AsSmallScenery(); + SmallSceneryElement* sceneryElement = tileElement->AsSmallScenery(); int32_t entryType = sceneryElement->GetEntryIndex(); auto entry = object_entry_get_entry(OBJECT_TYPE_SMALL_SCENERY, entryType); diff --git a/src/openrct2/world/MapGen.cpp b/src/openrct2/world/MapGen.cpp index fa66e2a4d0..1f1761221a 100644 --- a/src/openrct2/world/MapGen.cpp +++ b/src/openrct2/world/MapGen.cpp @@ -247,7 +247,7 @@ static void mapgen_place_tree(int32_t type, int32_t x, int32_t y) tileElement->clearance_height = surfaceZ + (sceneryEntry->small_scenery.height >> 3); tileElement->type = TILE_ELEMENT_TYPE_SMALL_SCENERY | (util_rand() & 3); - SmallSceneryElement * sceneryElement = tileElement->AsSmallScenery(); + SmallSceneryElement* sceneryElement = tileElement->AsSmallScenery(); sceneryElement->SetEntryIndex(type); sceneryElement->SetAge(0); sceneryElement->SetPrimaryColour(COLOUR_YELLOW); diff --git a/test/testpaint/Compat.cpp b/test/testpaint/Compat.cpp index 0647efddaf..12c1936cf6 100644 --- a/test/testpaint/Compat.cpp +++ b/test/testpaint/Compat.cpp @@ -154,12 +154,12 @@ rct_sprite* get_sprite(size_t sprite_idx) return &sprite_list[sprite_idx]; } -bool rct_tile_element::IsLastForTile() const +bool TileElementBase::IsLastForTile() const { return (this->flags & TILE_ELEMENT_FLAG_LAST_TILE) != 0; } -uint8_t rct_tile_element::GetType() const +uint8_t TileElementBase::GetType() const { return this->type & TILE_ELEMENT_TYPE_MASK; }