equal
deleted
inserted
replaced
91 if (!::IsValidTile(tile)) return false; |
91 if (!::IsValidTile(tile)) return false; |
92 |
92 |
93 return ::TileHeight(tile); |
93 return ::TileHeight(tile); |
94 } |
94 } |
95 |
95 |
|
96 /* static */ AICompany::CompanyIndex AITile::GetOwner(TileIndex tile) |
|
97 { |
|
98 if (!::IsValidTile(tile)) return AICompany::INVALID_COMPANY; |
|
99 if (::IsTileType(tile, MP_HOUSE)) return AICompany::INVALID_COMPANY; |
|
100 if (::IsTileType(tile, MP_INDUSTRY)) return AICompany::INVALID_COMPANY; |
|
101 |
|
102 return AICompany::ResolveCompanyIndex((AICompany::CompanyIndex)(byte)::GetTileOwner(tile)); |
|
103 } |
|
104 |
96 /* static */ int32 AITile::GetCargoAcceptance(TileIndex tile, CargoID cargo_type, uint width, uint height, uint radius) |
105 /* static */ int32 AITile::GetCargoAcceptance(TileIndex tile, CargoID cargo_type, uint width, uint height, uint radius) |
97 { |
106 { |
98 if (!::IsValidTile(tile)) return false; |
107 if (!::IsValidTile(tile)) return false; |
99 |
108 |
100 AcceptedCargo accepts; |
109 AcceptedCargo accepts; |