diff options
author | tron <tron@openttd.org> | 2006-01-30 16:57:47 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2006-01-30 16:57:47 +0000 |
commit | 8529923e0163e52f477c9377d9b4f7e561aef1f4 (patch) | |
tree | 368dcdfbc23d2d01647f66f4bae0c812d918217e | |
parent | a56ab08f3b306cfc21bc53b446a8831da6adeb4c (diff) | |
download | openttd-8529923e0163e52f477c9377d9b4f7e561aef1f4.tar.xz |
(svn r3488) Simplify the check in r3419
-rw-r--r-- | vehicle.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |