changeset 8418 | b49fc6be1ab9 |
parent 8363 | 2ec71a6debd1 |
child 8419 | de9999f762d0 |
--- a/src/vehicle.cpp Mon Nov 19 04:34:40 2007 +0000 +++ b/src/vehicle.cpp Mon Nov 19 18:38:10 2007 +0000 @@ -1352,8 +1352,8 @@ Vehicle *CreateEffectVehicleAbove(int x, int y, int z, EffectVehicle type) { - int safe_x = clamp(x, 0, MapMaxX() * TILE_SIZE); - int safe_y = clamp(y, 0, MapMaxY() * TILE_SIZE); + int safe_x = Clamp(x, 0, MapMaxX() * TILE_SIZE); + int safe_y = Clamp(y, 0, MapMaxY() * TILE_SIZE); return CreateEffectVehicle(x, y, GetSlopeZ(safe_x, safe_y) + z, type); }