changeset 2942:49d56aec23e7 draft

(svn r3498) Fix the edge case for r3419/r3488: when a vehicle just enters a tile, the height difference can be 8
author tron <tron@openttd.org>
date Tue, 31 Jan 2006 19:06:02 +0000
parents ad8c3cde8137
children eef6e29d748a
files vehicle.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/vehicle.c
+++ b/vehicle.c
@@ -129,7 +129,7 @@
 	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;