mirror of https://github.com/OpenRCT2/OpenRCT2.git
Paint 25 deg up to flat
This commit is contained in:
parent
4c0ea51540
commit
45686c2ab2
|
@ -33,11 +33,14 @@ enum
|
|||
SPR_MONORAIL_FLAT_TO_25_DEG_UP_SW_NE = 23254,
|
||||
SPR_MONORAIL_25_DEG_UP_NE_SW = 23255,
|
||||
SPR_MONORAIL_FLAT_TO_25_DEG_UP_NE_SW = 23256,
|
||||
|
||||
SPR_MONORAIL_25_DEG_UP_TO_FLAT_NE_SW = 23257,
|
||||
SPR_MONORAIL_25_DEG_UP_TO_FLAT_SW_NE = 23258,
|
||||
SPR_MONORAIL_25_DEG_UP_NW_SE = 23259,
|
||||
SPR_MONORAIL_25_DEG_UP_SE_NW = 23260,
|
||||
SPR_MONORAIL_FLAT_TO_25_DEG_UP_NW_SE = 23261,
|
||||
SPR_MONORAIL_FLAT_TO_25_DEG_UP_SE_NW = 23262,
|
||||
SPR_MONORAIL_25_DEG_UP_TO_FLAT_SE_NW = 23263,
|
||||
SPR_MONORAIL_25_DEG_UP_TO_FLAT_NW_SE = 23264,
|
||||
|
||||
SPR_MONORAIL_EIGHT_TO_DIAG_SW_E_PART_0 = 23293,
|
||||
SPR_MONORAIL_EIGHT_TO_DIAG_SW_E_PART_1 = 23294,
|
||||
|
@ -94,6 +97,13 @@ static const uint32 monorail_track_pieces_flat_to_25_deg_up[4] = {
|
|||
SPR_MONORAIL_FLAT_TO_25_DEG_UP_SE_NW,
|
||||
};
|
||||
|
||||
static const uint32 monorail_track_pieces_25_deg_up_to_flat[4] = {
|
||||
SPR_MONORAIL_25_DEG_UP_TO_FLAT_SW_NE,
|
||||
SPR_MONORAIL_25_DEG_UP_TO_FLAT_NW_SE,
|
||||
SPR_MONORAIL_25_DEG_UP_TO_FLAT_NE_SW,
|
||||
SPR_MONORAIL_25_DEG_UP_TO_FLAT_SE_NW,
|
||||
};
|
||||
|
||||
static const uint32 ghost_train_track_pieces_right_eight_to_diag[4][4] = {
|
||||
{
|
||||
SPR_MONORAIL_EIGHT_TO_DIAG_SW_E_PART_0,
|
||||
|
@ -344,9 +354,32 @@ static void paint_monorail_track_flat_to_25_deg_up(uint8 rideIndex, uint8 trackS
|
|||
paint_util_set_general_support_height(height + 48, 0x20);
|
||||
}
|
||||
|
||||
/** rct2: 0x */
|
||||
/** rct2: 0x008AE1DC */
|
||||
static void paint_monorail_track_25_deg_up_to_flat(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
|
||||
{
|
||||
rct_xy16 position = {RCT2_GLOBAL(0x009DE56A, sint16), RCT2_GLOBAL(0x009DE56E, sint16)};
|
||||
|
||||
uint32 imageId = monorail_track_pieces_25_deg_up_to_flat[direction] | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
|
||||
if (direction == 0 || direction == 2) {
|
||||
sub_98196C(imageId, 0, 6, 32, 20, 3, height, get_current_rotation());
|
||||
} else {
|
||||
sub_98196C(imageId, 6, 0, 20, 32, 3, height, get_current_rotation());
|
||||
}
|
||||
|
||||
switch (direction) {
|
||||
case 0: paint_util_push_tunnel_left(height - 8, TUNNEL_6); break;
|
||||
case 1: paint_util_push_tunnel_right(height + 8, TUNNEL_14); break;
|
||||
case 2: paint_util_push_tunnel_left(height + 8, TUNNEL_14); break;
|
||||
case 3: paint_util_push_tunnel_right(height - 8, TUNNEL_6); break;
|
||||
}
|
||||
|
||||
if (track_paint_util_should_paint_supports(position)) {
|
||||
metal_a_supports_paint_setup(3, 4, 6, height, RCT2_GLOBAL(0x00F4419C, uint32));
|
||||
}
|
||||
|
||||
paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_D0 | SEGMENT_C4 | SEGMENT_CC, direction), 0xFFFF, 0);
|
||||
paint_util_set_general_support_height(height + 40, 0x20);
|
||||
}
|
||||
|
||||
/** rct2: 0x008AE1EC */
|
||||
|
@ -355,9 +388,10 @@ static void paint_monorail_track_25_deg_down(uint8 rideIndex, uint8 trackSequenc
|
|||
paint_monorail_track_25_deg_up(rideIndex, trackSequence, (direction + 2) % 4, height, mapElement);
|
||||
}
|
||||
|
||||
/** rct2: 0x */
|
||||
/** rct2: 0x008AE1FC */
|
||||
static void paint_monorail_track_flat_to_25_deg_down(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
|
||||
{
|
||||
paint_monorail_track_25_deg_up_to_flat(rideIndex, trackSequence, (direction + 2) % 4, height, mapElement);
|
||||
}
|
||||
|
||||
/** rct2: 0x008AE20C */
|
||||
|
|
Loading…
Reference in New Issue