mirror of https://github.com/OpenRCT2/OpenRCT2.git
Also include the thick supports in RotatedMetalSupports
This commit is contained in:
parent
7cf75ab11d
commit
4ee088e27d
|
@ -1540,18 +1540,20 @@ bool PathBSupportsPaintSetup(
|
||||||
return false; // AND
|
return false; // AND
|
||||||
}
|
}
|
||||||
|
|
||||||
MetalSupportType RotatedMetalSupports[MetalSupportTypeCount][2] = {
|
MetalSupportType RotatedMetalSupports[MetalSupportTypeCount][NumOrthogonalDirections] = {
|
||||||
{ MetalSupportType::Tubes, MetalSupportType::Tubes },
|
{ MetalSupportType::Tubes, MetalSupportType::Tubes, MetalSupportType::Tubes, MetalSupportType::Tubes },
|
||||||
{ MetalSupportType::Fork, MetalSupportType::ForkAlt },
|
{ MetalSupportType::Fork, MetalSupportType::ForkAlt, MetalSupportType::Fork, MetalSupportType::ForkAlt },
|
||||||
{ MetalSupportType::ForkAlt, MetalSupportType::Fork },
|
{ MetalSupportType::ForkAlt, MetalSupportType::Fork, MetalSupportType::ForkAlt, MetalSupportType::Fork },
|
||||||
{ MetalSupportType::Boxed, MetalSupportType::Boxed },
|
{ MetalSupportType::Boxed, MetalSupportType::Boxed, MetalSupportType::Boxed, MetalSupportType::Boxed },
|
||||||
{ MetalSupportType::Stick, MetalSupportType::StickAlt },
|
{ MetalSupportType::Stick, MetalSupportType::StickAlt, MetalSupportType::Stick, MetalSupportType::StickAlt },
|
||||||
{ MetalSupportType::StickAlt, MetalSupportType::Stick },
|
{ MetalSupportType::StickAlt, MetalSupportType::Stick, MetalSupportType::StickAlt, MetalSupportType::Stick },
|
||||||
{ MetalSupportType::ThickCentred, MetalSupportType::ThickAltCentred },
|
{ MetalSupportType::ThickCentred, MetalSupportType::ThickAltCentred, MetalSupportType::Thick, MetalSupportType::ThickAlt },
|
||||||
{ MetalSupportType::Thick, MetalSupportType::ThickAlt },
|
{ MetalSupportType::Thick, MetalSupportType::ThickAlt, MetalSupportType::ThickCentred, MetalSupportType::ThickAltCentred },
|
||||||
{ MetalSupportType::ThickAlt, MetalSupportType::Thick },
|
{ MetalSupportType::ThickAlt, MetalSupportType::ThickCentred, MetalSupportType::ThickAltCentred, MetalSupportType::Thick },
|
||||||
{ MetalSupportType::ThickAltCentred, MetalSupportType::ThickCentred },
|
{ MetalSupportType::ThickAltCentred, MetalSupportType::Thick, MetalSupportType::ThickAlt, MetalSupportType::ThickCentred },
|
||||||
{ MetalSupportType::Truss, MetalSupportType::Truss },
|
{ MetalSupportType::Truss, MetalSupportType::Truss, MetalSupportType::Truss, MetalSupportType::Truss },
|
||||||
{ MetalSupportType::TubesInverted, MetalSupportType::TubesInverted },
|
{ MetalSupportType::TubesInverted, MetalSupportType::TubesInverted, MetalSupportType::TubesInverted,
|
||||||
{ MetalSupportType::BoxedCoated, MetalSupportType::BoxedCoated },
|
MetalSupportType::TubesInverted },
|
||||||
|
{ MetalSupportType::BoxedCoated, MetalSupportType::BoxedCoated, MetalSupportType::BoxedCoated,
|
||||||
|
MetalSupportType::BoxedCoated },
|
||||||
};
|
};
|
||||||
|
|
|
@ -95,11 +95,7 @@ enum class MetalSupportType : uint8_t
|
||||||
};
|
};
|
||||||
constexpr uint8_t MetalSupportTypeCount = 13;
|
constexpr uint8_t MetalSupportTypeCount = 13;
|
||||||
|
|
||||||
/**
|
extern MetalSupportType RotatedMetalSupports[MetalSupportTypeCount][NumOrthogonalDirections];
|
||||||
* Each pair corresponds with a type of metal support. The first entry is for even rotations (0 and 2),
|
|
||||||
* the second entry is for odd rotations (1 and 3).
|
|
||||||
*/
|
|
||||||
extern MetalSupportType RotatedMetalSupports[MetalSupportTypeCount][2];
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Tiles are rendered at a 45 degree angle, with the corners on the top, bottom, left and right.
|
* Tiles are rendered at a 45 degree angle, with the corners on the top, bottom, left and right.
|
||||||
|
|
|
@ -951,10 +951,10 @@ void TrackPaintUtilDrawStationMetalSupports(PaintSession& session, Direction dir
|
||||||
void TrackPaintUtilDrawStationMetalSupports2(
|
void TrackPaintUtilDrawStationMetalSupports2(
|
||||||
PaintSession& session, Direction direction, uint16_t height, ImageId colour, MetalSupportType type, int32_t special)
|
PaintSession& session, Direction direction, uint16_t height, ImageId colour, MetalSupportType type, int32_t special)
|
||||||
{
|
{
|
||||||
|
type = RotatedMetalSupports[EnumValue(type)][direction];
|
||||||
|
|
||||||
if (direction & 1)
|
if (direction & 1)
|
||||||
{
|
{
|
||||||
type = RotatedMetalSupports[EnumValue(type)][1];
|
|
||||||
|
|
||||||
MetalASupportsPaintSetup(session, type, MetalSupportPlace::TopRightSide, special, height, colour);
|
MetalASupportsPaintSetup(session, type, MetalSupportPlace::TopRightSide, special, height, colour);
|
||||||
MetalASupportsPaintSetup(session, type, MetalSupportPlace::BottomLeftSide, special, height, colour);
|
MetalASupportsPaintSetup(session, type, MetalSupportPlace::BottomLeftSide, special, height, colour);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue