mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-16 11:33:03 +01:00
Convert small scenery support flag to allow use of new colors
This commit is contained in:
@@ -9,7 +9,7 @@ struct ObjectRepositoryItem;
|
||||
namespace OpenRCT2
|
||||
{
|
||||
// Current version that is saved.
|
||||
constexpr uint32_t PARK_FILE_CURRENT_VERSION = 24;
|
||||
constexpr uint32_t PARK_FILE_CURRENT_VERSION = 25;
|
||||
|
||||
// The minimum version that is forwards compatible with the current version.
|
||||
constexpr uint32_t PARK_FILE_MIN_VERSION = 24;
|
||||
|
||||
@@ -1706,9 +1706,9 @@ namespace RCT1
|
||||
dst2->SetEntryIndex(entryIndex);
|
||||
dst2->SetAge(src2->GetAge());
|
||||
dst2->SetSceneryQuadrant(src2->GetSceneryQuadrant());
|
||||
dst2->SetPrimaryColour(RCT1::GetColour(src2->GetPrimaryColour()));
|
||||
if (src2->NeedsSupports())
|
||||
dst2->SetNeedsSupports();
|
||||
dst2->SetPrimaryColour(RCT1::GetColour(src2->GetPrimaryColour()) & RCT12_TILE_ELEMENT_COLOUR_MASK);
|
||||
|
||||
// Copied from [rct2: 0x006A2956]
|
||||
switch (src2->GetEntryIndex())
|
||||
|
||||
@@ -1484,10 +1484,10 @@ namespace RCT2
|
||||
dst2->SetEntryIndex(src2->GetEntryIndex());
|
||||
dst2->SetAge(src2->GetAge());
|
||||
dst2->SetSceneryQuadrant(src2->GetSceneryQuadrant());
|
||||
dst2->SetPrimaryColour(src2->GetPrimaryColour());
|
||||
dst2->SetSecondaryColour(src2->GetSecondaryColour());
|
||||
if (src2->NeedsSupports())
|
||||
dst2->SetNeedsSupports();
|
||||
dst2->SetPrimaryColour(src2->GetPrimaryColour() & RCT12_TILE_ELEMENT_COLOUR_MASK);
|
||||
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user