(svn r3488) Simplify the check in r3419

This commit is contained in:
tron 2006-01-30 16:57:47 +00:00
parent 2f668b8669
commit 7d03773383
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 (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;