mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-30 10:15:36 +01:00
Const all the painted tile elements
Extracted from https://github.com/OpenRCT2/OpenRCT2/pull/7036
This commit is contained in:
committed by
Michał Janiszewski
parent
76a997aa18
commit
3f76bd214f
@@ -36,13 +36,13 @@ enum
|
||||
*
|
||||
* rct2: 0x0076522A
|
||||
*/
|
||||
static void paint_motionsimulator_vehicle(paint_session * session, sint8 offsetX, sint8 offsetY, uint8 direction, sint32 height,
|
||||
rct_tile_element * tileElement)
|
||||
static void paint_motionsimulator_vehicle(
|
||||
paint_session * session, sint8 offsetX, sint8 offsetY, uint8 direction, sint32 height, const rct_tile_element * tileElement)
|
||||
{
|
||||
Ride * ride = get_ride(track_element_get_ride_index(tileElement));
|
||||
rct_ride_entry * rideEntry = get_ride_entry_by_ride(ride);
|
||||
|
||||
rct_tile_element * savedTileElement = static_cast<rct_tile_element *>(session->CurrentlyDrawnItem);
|
||||
const rct_tile_element * savedTileElement = static_cast<const rct_tile_element *>(session->CurrentlyDrawnItem);
|
||||
|
||||
rct_vehicle * vehicle = nullptr;
|
||||
if (ride->lifecycle_flags & RIDE_LIFECYCLE_ON_TRACK)
|
||||
@@ -133,8 +133,13 @@ static void paint_motionsimulator_vehicle(paint_session * session, sint8 offsetX
|
||||
}
|
||||
|
||||
/** rct2: 0x008A85C4 */
|
||||
static void paint_motionsimulator(paint_session * session, uint8 rideIndex, uint8 trackSequence, uint8 direction, sint32 height,
|
||||
rct_tile_element * tileElement)
|
||||
static void paint_motionsimulator(
|
||||
paint_session * session,
|
||||
uint8 rideIndex,
|
||||
uint8 trackSequence,
|
||||
uint8 direction,
|
||||
sint32 height,
|
||||
const rct_tile_element * tileElement)
|
||||
{
|
||||
trackSequence = track_map_2x2[direction][trackSequence];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user