1
0
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:
duncanspumpkin
2019-08-13 19:25:39 +01:00
parent 5b92b64ec7
commit f3db7f877a
9 changed files with 16 additions and 20 deletions

View File

@@ -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)
{