mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-22 14:24:33 +01:00
Add new .park save format
Co-authored-by: Gymnasiast <Gymnasiast@users.noreply.github.com> Co-authored-by: duncanspumpkin <duncanspumpkin@users.noreply.github.com> Co-authored-by: ZehMatt <Zehmatt@users.noreply.github.com> Co-authored-by: Broxzier <Broxzier@users.noreply.github.com>
This commit is contained in:
@@ -1405,7 +1405,6 @@ static constexpr const uint16_t ElementTypeMaskColour[] = {
|
||||
0xFFFF, // TILE_ELEMENT_TYPE_WALL
|
||||
0x0000, // TILE_ELEMENT_TYPE_LARGE_SCENERY
|
||||
0xFFFF, // TILE_ELEMENT_TYPE_BANNER
|
||||
0x0000, // TILE_ELEMENT_TYPE_CORRUPT
|
||||
};
|
||||
|
||||
static constexpr const uint16_t ElementTypeAddColour[] = {
|
||||
@@ -1417,7 +1416,6 @@ static constexpr const uint16_t ElementTypeAddColour[] = {
|
||||
MapColour(PALETTE_INDEX_0), // TILE_ELEMENT_TYPE_WALL
|
||||
MapColour(PALETTE_INDEX_99), // TILE_ELEMENT_TYPE_LARGE_SCENERY
|
||||
MapColour(PALETTE_INDEX_0), // TILE_ELEMENT_TYPE_BANNER
|
||||
MapColour(PALETTE_INDEX_68), // TILE_ELEMENT_TYPE_CORRUPT
|
||||
};
|
||||
|
||||
static uint16_t map_window_get_pixel_colour_peep(const CoordsXY& c)
|
||||
@@ -1445,7 +1443,7 @@ static uint16_t map_window_get_pixel_colour_peep(const CoordsXY& c)
|
||||
int32_t tileElementType = tileElement->GetType() >> 2;
|
||||
if (tileElementType >= maxSupportedTileElementType)
|
||||
{
|
||||
tileElementType = TILE_ELEMENT_TYPE_CORRUPT >> 2;
|
||||
tileElementType = TILE_ELEMENT_TYPE_SURFACE >> 2;
|
||||
}
|
||||
colour &= ElementTypeMaskColour[tileElementType];
|
||||
colour |= ElementTypeAddColour[tileElementType];
|
||||
|
||||
Reference in New Issue
Block a user