forked from mirror/OpenTTD
(svn r1536) Move GET_TILEHEIGHT, GET_TILETYPE and IS_TILETYPE to map.h, turn them into inline functions and add some asserts
This commit is contained in:
@@ -84,7 +84,7 @@ static int FindClosestShipDepot(Vehicle *v)
|
||||
|
||||
for(i=0; i!=lengthof(_depots); i++) {
|
||||
tile = _depots[i].xy;
|
||||
if (IS_TILETYPE(tile, MP_WATER) && _map_owner[tile] == owner) {
|
||||
if (IsTileType(tile, MP_WATER) && _map_owner[tile] == owner) {
|
||||
dist = GetTileDist(tile, tile2);
|
||||
if (dist < best_dist) {
|
||||
best_dist = dist;
|
||||
|
Reference in New Issue
Block a user