mirror of https://github.com/OpenRCT2/OpenRCT2.git
Draw flat
This commit is contained in:
parent
0dd0c9c1f2
commit
25c1c93cab
|
@ -25,11 +25,37 @@
|
||||||
#include "../../world/map.h"
|
#include "../../world/map.h"
|
||||||
|
|
||||||
enum {
|
enum {
|
||||||
|
SPR_CAR_RIDE_FLAT_SW_NE = 28773,
|
||||||
|
SPR_CAR_RIDE_FLAT_NW_SE = 28774,
|
||||||
};
|
};
|
||||||
|
|
||||||
/** rct2: 0x */
|
static const uint32 car_ride_track_pieces_flat[4] = {
|
||||||
|
SPR_CAR_RIDE_FLAT_SW_NE,
|
||||||
|
SPR_CAR_RIDE_FLAT_NW_SE,
|
||||||
|
SPR_CAR_RIDE_FLAT_SW_NE,
|
||||||
|
SPR_CAR_RIDE_FLAT_NW_SE,
|
||||||
|
};
|
||||||
|
|
||||||
|
/** rct2: 0x006F72C8 */
|
||||||
static void paint_car_ride_track_flat(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
|
static void paint_car_ride_track_flat(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
|
||||||
{
|
{
|
||||||
|
uint32 imageId = car_ride_track_pieces_flat[direction] | RCT2_GLOBAL(0x00F44198, uint32);
|
||||||
|
|
||||||
|
if (direction == 0 || direction == 2) {
|
||||||
|
sub_98196C(imageId, 0, 6, 32, 20, 1, height, get_current_rotation());
|
||||||
|
} else {
|
||||||
|
sub_98196C(imageId, 6, 0, 20, 32, 1, height, get_current_rotation());
|
||||||
|
}
|
||||||
|
|
||||||
|
if (direction == 0 || direction == 2) {
|
||||||
|
paint_util_push_tunnel_left(height, TUNNEL_0);
|
||||||
|
} else {
|
||||||
|
paint_util_push_tunnel_right(height, TUNNEL_0);
|
||||||
|
}
|
||||||
|
|
||||||
|
metal_a_supports_paint_setup(3, 4, 0, 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 + 32, 0x20);
|
||||||
}
|
}
|
||||||
|
|
||||||
/** rct2: 0x */
|
/** rct2: 0x */
|
||||||
|
|
Loading…
Reference in New Issue