diff options
author | tron <tron@openttd.org> | 2006-01-31 19:06:02 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2006-01-31 19:06:02 +0000 |
commit | 4e2bb34be3f2fab054b625eb8dfc015b3b08a568 (patch) | |
tree | 4cbd225c73035a3211f04ba7834a3ca5c54b90b8 | |
parent | 0f535026cf5c5e669b6b3b974d95de3b964f7d36 (diff) | |
download | openttd-4e2bb34be3f2fab054b625eb8dfc015b3b08a568.tar.xz |
(svn r3498) Fix the edge case for r3419/r3488: when a vehicle just enters a tile, the height difference can be 8
-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 (!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; |