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:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user