forked from mirror/OpenTTD
(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.
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user