summaryrefslogtreecommitdiff
path: root/vehicle.c
diff options
context:
space:
mode:
authortron <tron@openttd.org>2006-01-31 19:06:02 +0000
committertron <tron@openttd.org>2006-01-31 19:06:02 +0000
commitea45799d5b81ef5df0335c9ea6477e34fb28638d (patch)
tree4cbd225c73035a3211f04ba7834a3ca5c54b90b8 /vehicle.c
parentb0927f6aaab0164336ad6db4e47a190063b361b7 (diff)
downloadopenttd-ea45799d5b81ef5df0335c9ea6477e34fb28638d.tar.xz
(svn r3498) Fix the edge case for r3419/r3488: when a vehicle just enters a tile, the height difference can be 8
Diffstat (limited to 'vehicle.c')
-rw-r--r--vehicle.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vehicle.c b/vehicle.c
index 0424b4768..5c8a275de 100644
--- a/vehicle.c
+++ b/vehicle.c
@@ -129,7 +129,7 @@ static void *EnsureNoVehicleProcZ(Vehicle *v, void *data)
const TileInfo *ti = data;
if (v->tile != ti->tile || v->type == VEH_Disaster) return NULL;
- if (!IS_INT_INSIDE(ti->z - v->z_pos, 0, 8)) return NULL;
+ if (!IS_INT_INSIDE(ti->z - v->z_pos, 0, 8 + 1)) return NULL;
VehicleInTheWayErrMsg(v);
return v;