mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-27 16:54:52 +01:00
Refactor tile_element_water_height to take CoordsXY
This commit is contained in:
@@ -5432,7 +5432,7 @@ static void vehicle_update_crash(rct_vehicle* vehicle)
|
||||
}
|
||||
|
||||
int16_t z = tile_element_height({ curVehicle->x, curVehicle->y });
|
||||
int16_t waterHeight = tile_element_water_height(curVehicle->x, curVehicle->y);
|
||||
int16_t waterHeight = tile_element_water_height({ curVehicle->x, curVehicle->y });
|
||||
int16_t zDiff;
|
||||
if (waterHeight != 0)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user