mirror of https://github.com/OpenRCT2/OpenRCT2.git
Fix GCC
This commit is contained in:
parent
b868cccea2
commit
e8e2039832
|
@ -1804,13 +1804,9 @@ void junior_rc_paint_track_flat(uint8 rideIndex, uint8 trackSequence, uint8 dire
|
|||
paint_util_set_general_support_height(height + 32, 0x20);
|
||||
}
|
||||
|
||||
void junior_rc_paint_station(uint8 rideIndex, uint8 trackSequence, uint8 direction, uint16 height, rct_map_element* mapElement, uint8 rideType) {
|
||||
rct_ride * ride = get_ride(rideIndex);
|
||||
const rct_ride_entrance_definition * entranceStyle = &RideEntranceDefinitions[ride->entrance_style];
|
||||
uint32 imageId = entranceStyle->base_image_id;
|
||||
if (!(gTrackColours[SCHEME_MISC] & (1 << 29))) {
|
||||
imageId &= 0x7FFFF;
|
||||
}
|
||||
void junior_rc_paint_station(uint8 rideIndex, uint8 trackSequence, uint8 direction, uint16 height, rct_map_element* mapElement, uint8 rideType)
|
||||
{
|
||||
uint32 imageId;
|
||||
|
||||
bool isBraked = (bool)(mapElement->flags & MAP_ELEMENT_FLAG_BLOCK_BRAKE_CLOSED);
|
||||
|
||||
|
@ -1918,8 +1914,6 @@ void junior_rc_paint_track_25_deg_up_to_flat(uint8 rideIndex, uint8 trackSequenc
|
|||
paint_util_push_tunnel_left(tunnelHeight, tunnelType);
|
||||
}
|
||||
|
||||
const rct_xy16 pos = {gPaintMapPosition.x, gPaintMapPosition.y};
|
||||
|
||||
if (track_paint_util_should_paint_supports(gPaintMapPosition)) {
|
||||
int supportType = direction & 1 ? 2 : 1;
|
||||
metal_a_supports_paint_setup(supportType, 4, 6, height, gTrackColours[SCHEME_SUPPORTS]);
|
||||
|
|
|
@ -16,22 +16,9 @@
|
|||
|
||||
#include "../../common.h"
|
||||
#include "../coaster/junior_roller_coaster.h"
|
||||
#include "../../common.h"
|
||||
#include "../../interface/viewport.h"
|
||||
#include "../../paint/supports.h"
|
||||
#include "../../paint/paint.h"
|
||||
#include "../track.h"
|
||||
#include "../track_paint.h"
|
||||
|
||||
static const uint8 water_rc_diag_support_segment[] = {1, 0, 2, 3};
|
||||
|
||||
static const int water_rc_diag_blocked_segments[] = {
|
||||
SEGMENT_C4 | SEGMENT_CC | SEGMENT_D4 | SEGMENT_BC,
|
||||
SEGMENT_C4 | SEGMENT_CC | SEGMENT_C8 | SEGMENT_B4,
|
||||
SEGMENT_D0 | SEGMENT_C4 | SEGMENT_C0 | SEGMENT_D4,
|
||||
SEGMENT_D0 | SEGMENT_C4 | SEGMENT_B8 | SEGMENT_C8
|
||||
};
|
||||
|
||||
static void water_rc_track_flat(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
|
||||
{
|
||||
bool isChained = track_element_is_lift_hill(mapElement);
|
||||
|
|
Loading…
Reference in New Issue