(svn r3488) Simplify the check in r3419
authortron
Mon, 30 Jan 2006 16:57:47 +0000
changeset 2932 16e9c72e32df
parent 2931 d9e2973a110f
child 2933 d7a6b3853609
(svn r3488) Simplify the check in r3419
vehicle.c
--- a/vehicle.c	Mon Jan 30 16:48:24 2006 +0000
+++ b/vehicle.c	Mon Jan 30 16:57:47 2006 +0000
@@ -129,7 +129,7 @@
 	const TileInfo *ti = data;
 
 	if (v->tile != ti->tile || v->type == VEH_Disaster) return NULL;
-	if (v->z_pos != ti->z && abs(ti->z - v->z_pos) >= 8) return NULL;
+	if (!IS_INT_INSIDE(ti->z - v->z_pos, 0, 8)) return NULL;
 
 	VehicleInTheWayErrMsg(v);
 	return v;