From 6c76d3f2d2ab486a7c10cde01f36707894d9a554 Mon Sep 17 00:00:00 2001 From: Marijn van der Werf Date: Wed, 3 Aug 2016 01:51:12 +0200 Subject: [PATCH] Use `FlatTrackCoordinates` --- src/windows/ride_construction.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/windows/ride_construction.c b/src/windows/ride_construction.c index 462a9ca4aa..09f32b5991 100644 --- a/src/windows/ride_construction.c +++ b/src/windows/ride_construction.c @@ -2728,7 +2728,7 @@ money32 sub_6CA162(int rideIndex, int trackType, int trackDirection, int edxRS16 RCT2_GLOBAL(0x00F440C5, uint16) = x; RCT2_GLOBAL(0x00F440C7, uint16) = y; z += ride_type_has_flag(ride->type, RIDE_TYPE_FLAG_FLAT_RIDE) ? - RCT2_GLOBAL(0x009972BD + (trackType * 10), uint16) : + FlatTrackCoordinates[trackType].z_begin: TrackCoordinates[trackType].z_begin; RCT2_GLOBAL(0x00F440C9, uint16) = z;