(svn r3498) Fix the edge case for r3419/r3488: when a vehicle just enters a tile, the height difference can be 8
authortron
Tue, 31 Jan 2006 19:06:02 +0000
changeset 2942 a57900fda8b8
parent 2941 23aa0ef3cd70
child 2943 384c32d588e3
(svn r3498) Fix the edge case for r3419/r3488: when a vehicle just enters a tile, the height difference can be 8
vehicle.c
--- a/vehicle.c	Tue Jan 31 18:31:05 2006 +0000
+++ b/vehicle.c	Tue Jan 31 19:06:02 2006 +0000
@@ -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;