1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-06 06:32:56 +01:00

Update facility and shop support calls

This commit is contained in:
Gymnasiast
2023-11-17 23:23:06 +01:00
parent f6c112bf50
commit 22c23a70c6
2 changed files with 4 additions and 2 deletions

View File

@@ -22,7 +22,8 @@ static void PaintFacility(
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
const TrackElement& trackElement)
{
bool hasSupports = WoodenASupportsPaintSetup(session, direction & 1, 0, height, session.TrackColours[SCHEME_3]);
bool hasSupports = WoodenASupportsPaintSetupRotated(
session, WoodenSupportType::Truss, WoodenSupportSubType::NeSw, direction, height, session.TrackColours[SCHEME_3]);
auto rideEntry = ride.GetRideEntry();
if (rideEntry == nullptr)

View File

@@ -22,7 +22,8 @@ static void PaintShop(
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
const TrackElement& trackElement)
{
bool hasSupports = WoodenASupportsPaintSetup(session, direction & 1, 0, height, session.TrackColours[SCHEME_3]);
bool hasSupports = WoodenASupportsPaintSetupRotated(
session, WoodenSupportType::Truss, WoodenSupportSubType::NeSw, direction, height, session.TrackColours[SCHEME_3]);
auto rideEntry = ride.GetRideEntry();
if (rideEntry == nullptr)