(svn r3498) Fix the edge case for r3419/r3488: when a vehicle just enters a tile, the height difference can be 8

This commit is contained in:
tron 2006-01-31 19:06:02 +00:00
parent 0f535026cf
commit 4e2bb34be3
1 changed files with 1 additions and 1 deletions

View File

@ -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;