1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-21 22:13:07 +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

@@ -81,7 +81,7 @@ void crashed_vehicle_particle_update(rct_crashed_vehicle_particle* particle)
// Check collision with land / water
int16_t landZ = tile_element_height({ x, y });
int16_t waterZ = tile_element_water_height(x, y);
int16_t waterZ = tile_element_water_height({ x, y });
if (waterZ != 0 && particle->z >= waterZ && z <= waterZ)
{