From ae796740aab0ee480759d2015014b29e2a7aedb4 Mon Sep 17 00:00:00 2001 From: tron Date: Sun, 16 Jan 2005 11:24:58 +0000 Subject: (svn r1536) Move GET_TILEHEIGHT, GET_TILETYPE and IS_TILETYPE to map.h, turn them into inline functions and add some asserts --- ship_cmd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ship_cmd.c') diff --git a/ship_cmd.c b/ship_cmd.c index 161939be2..ba8e288ba 100644 --- a/ship_cmd.c +++ b/ship_cmd.c @@ -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; -- cgit v1.2.3-54-g00ecf