Codechange: migrate size related functions to Map structure
This commit is contained in:
@@ -143,8 +143,8 @@ bool AirportSpec::IsWithinMapBounds(byte table, TileIndex tile) const
|
||||
byte h = this->size_y;
|
||||
if (this->rotation[table] == DIR_E || this->rotation[table] == DIR_W) Swap(w, h);
|
||||
|
||||
return TileX(tile) + w < MapSizeX() &&
|
||||
TileY(tile) + h < MapSizeY();
|
||||
return TileX(tile) + w < Map::SizeX() &&
|
||||
TileY(tile) + h < Map::SizeY();
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user