Use CoordsXY::ToTileCentre() on Ride.cpp

This commit is contained in:
Tulio Leao committed 2019-12-04 22:02:11 -03:00
1 parent 6f0ebfea27
commit d9348cf562
1 file changed
+2 -2
+2 -2
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;