1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-26 16:24:35 +01:00

Pass Ride* instead of ride_id_t

This commit is contained in:
Ted John
2019-02-13 20:16:42 +00:00
parent fdf9f36fab
commit ba445cb6ef
10 changed files with 185 additions and 182 deletions

View File

@@ -1509,7 +1509,7 @@ static money32 track_place(
{
track_add_station_element(x, y, baseZ, direction, rideIndex, GAME_COMMAND_FLAG_APPLY);
}
sub_6CB945(rideIndex);
sub_6CB945(ride);
ride_update_max_vehicles(ride);
}
@@ -1794,7 +1794,7 @@ static money32 track_remove(
footpath_remove_edges_at(x, y, tileElement);
}
tile_element_remove(tileElement);
sub_6CB945(rideIndex);
sub_6CB945(ride);
if (!(flags & GAME_COMMAND_FLAG_GHOST))
{
ride_update_max_vehicles(ride);