From 97ae59fe1a0248b95dbfff27f84cfeb87742f050 Mon Sep 17 00:00:00 2001 From: tron Date: Sat, 29 Jan 2005 15:12:40 +0000 Subject: (svn r1718) Use the enum TileType as parameter/return type for [GS]etTileType() instead of plain int. This makes it necessary to rename TileType() to GetTileType() because a type and a function may not share the same name. --- train_cmd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'train_cmd.c') diff --git a/train_cmd.c b/train_cmd.c index 3d55f2484..08afbd391 100644 --- a/train_cmd.c +++ b/train_cmd.c @@ -2079,7 +2079,7 @@ static int GetDirectionToVehicle(Vehicle *v, int x, int y) /* Check if the vehicle is compatible with the specified tile */ static bool CheckCompatibleRail(const Vehicle *v, TileIndex tile) { - switch (TileType(tile)) { + switch (GetTileType(tile)) { case MP_RAILWAY: case MP_STATION: // normal tracks, jump to owner check -- cgit v1.2.3-54-g00ecf