mirror of https://github.com/OpenRCT2/OpenRCT2.git
Always show Looping RC booster
This commit is contained in:
parent
79b12d2953
commit
75aecadbc5
|
@ -18,8 +18,8 @@
|
|||
#include "../TrackData.h"
|
||||
#include "../TrackPaint.h"
|
||||
|
||||
static constexpr auto SPR_LOOPING_RC_BOOSTER_NE_SW = (SPR_CSG_BEGIN + 55679);
|
||||
static constexpr auto SPR_LOOPING_RC_BOOSTER_NW_SE = (SPR_CSG_BEGIN + 55680);
|
||||
static constexpr auto SPR_LOOPING_RC_BOOSTER_NE_SW = 15010;
|
||||
static constexpr auto SPR_LOOPING_RC_BOOSTER_NW_SE = 15011;
|
||||
|
||||
static constexpr auto SPR_LOOPING_RC_FLAT_CHAINED_SW_NE = 15016;
|
||||
static constexpr auto SPR_LOOPING_RC_FLAT_CHAINED_NW_SE = 15017;
|
||||
|
@ -85,19 +85,19 @@ static void looping_rc_track_station(
|
|||
paint_session* session, const Ride* ride, [[maybe_unused]] uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
static constexpr uint32_t imageIdsWithCsg[4][2] = {
|
||||
static constexpr uint32_t imageIdsFrictionWheels[4][2] = {
|
||||
{ SPR_LOOPING_RC_BOOSTER_NE_SW, SPR_STATION_BASE_B_SW_NE },
|
||||
{ SPR_LOOPING_RC_BOOSTER_NW_SE, SPR_STATION_BASE_B_NW_SE },
|
||||
{ SPR_LOOPING_RC_BOOSTER_NE_SW, SPR_STATION_BASE_B_SW_NE },
|
||||
{ SPR_LOOPING_RC_BOOSTER_NW_SE, SPR_STATION_BASE_B_NW_SE },
|
||||
};
|
||||
static constexpr uint32_t imageIdsWithoutCsg[4][2] = {
|
||||
static constexpr uint32_t imageIdsShuttleLaunch[4][2] = {
|
||||
{ SPR_LOOPING_RC_FLAT_CHAINED_SW_NE, SPR_STATION_BASE_B_SW_NE },
|
||||
{ SPR_LOOPING_RC_FLAT_CHAINED_NW_SE, SPR_STATION_BASE_B_NW_SE },
|
||||
{ SPR_LOOPING_RC_FLAT_CHAINED_SW_NE, SPR_STATION_BASE_B_SW_NE },
|
||||
{ SPR_LOOPING_RC_FLAT_CHAINED_NW_SE, SPR_STATION_BASE_B_NW_SE },
|
||||
};
|
||||
const auto& imageIds = is_csg_loaded() ? imageIdsWithCsg : imageIdsWithoutCsg;
|
||||
const auto& imageIds = is_csg_loaded() ? imageIdsShuttleLaunch : imageIdsFrictionWheels;
|
||||
|
||||
PaintAddImageAsParentRotated(
|
||||
session, direction, imageIds[direction][0] | session->TrackColours[SCHEME_TRACK], 0, 0, 32, 20, 1, height, 0, 6,
|
||||
|
@ -9161,12 +9161,6 @@ static void looping_rc_track_booster(
|
|||
paint_session* session, const Ride* ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
if (!is_csg_loaded())
|
||||
{
|
||||
looping_rc_track_brakes(session, ride, trackSequence, direction, height, trackElement);
|
||||
return;
|
||||
}
|
||||
|
||||
switch (direction)
|
||||
{
|
||||
case 0:
|
||||
|
|
Loading…
Reference in New Issue