1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-17 12:03:07 +01:00

Implement omit of ghost tile elements when saving

This commit is contained in:
Ted John
2021-04-27 00:04:38 +01:00
parent c9b2e9fb55
commit d0fbd4193a
5 changed files with 58 additions and 77 deletions

View File

@@ -794,8 +794,7 @@ namespace OpenRCT2
}
else
{
ReorganiseTileElements();
const auto& tileElements = GetTileElements();
auto tileElements = GetReorganisedTileElementsWithoutGhosts();
cs.Write(static_cast<uint32_t>(tileElements.size()));
cs.Write(tileElements.data(), tileElements.size() * sizeof(TileElement));
}