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
1 changed files with 2 additions and 2 deletions

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;