(svn r2109) -Fix: use FindVehicleOnTileZ(tile, 0) over FindVehicleBetween(tile, tile, 0)

This commit is contained in:
truelight
2005-03-30 09:25:20 +00:00
parent 9ebe54c1ae
commit 4c9f0eefb4
3 changed files with 12 additions and 1 deletions

View File

@@ -117,6 +117,16 @@ bool EnsureNoVehicleZ(TileIndex tile, byte z)
return VehicleFromPos(tile, &ti, EnsureNoVehicleProcZ) == NULL;
}
Vehicle *FindVehicleOnTileZ(TileIndex tile, byte z)
{
TileInfo ti;
ti.tile = tile;
ti.z = z;
return VehicleFromPos(tile, &ti, EnsureNoVehicleProcZ);
}
Vehicle *FindVehicleBetween(TileIndex from, TileIndex to, byte z)
{
int x1 = TileX(from);