From 8529923e0163e52f477c9377d9b4f7e561aef1f4 Mon Sep 17 00:00:00 2001 From: tron Date: Mon, 30 Jan 2006 16:57:47 +0000 Subject: (svn r3488) Simplify the check in r3419 --- vehicle.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vehicle.c b/vehicle.c index c139387c2..0424b4768 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 (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; -- cgit v1.2.3-70-g09d2