mirror of https://github.com/OpenTTD/OpenTTD.git
(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:
parent
0f535026cf
commit
4e2bb34be3
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue