(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 d97ff67129
commit 95541fa52d
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);