1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-15 11:03:00 +01:00

Use CoordsXY::ToTileCentre() on Ride.cpp

This commit is contained in:
Tulio Leao
2019-12-04 22:02:11 -03:00
parent 6f0ebfea27
commit d9348cf562

View File

@@ -2899,8 +2899,8 @@ static void ride_music_update(Ride* ride)
return;
}
CoordsXYZ rideCoords{ ride->stations[0].Start.x * 32 + 16, ride->stations[0].Start.y * 32 + 16,
ride->stations[0].Height * 8 };
CoordsXYZ rideCoords{ ride->stations[0].Start.x * 32, ride->stations[0].Start.y * 32, ride->stations[0].Height * 8 };
rideCoords = { rideCoords.ToTileCentre(), rideCoords.z };
int32_t sampleRate = 22050;