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:
@@ -185,7 +185,7 @@ static Order GetOrderCmdFromTile(Vehicle *v, uint tile)
|
||||
|
||||
// check depot first
|
||||
if (_patches.gotodepot) {
|
||||
switch (TileType(tile)) {
|
||||
switch (GetTileType(tile)) {
|
||||
case MP_RAILWAY:
|
||||
if (v->type == VEH_Train && _map_owner[tile] == _local_player) {
|
||||
if ((_map5[tile]&0xFC)==0xC0) {
|
||||
@@ -228,6 +228,9 @@ static Order GetOrderCmdFromTile(Vehicle *v, uint tile)
|
||||
order.station = GetDepotByTile(tile);
|
||||
return order;
|
||||
}
|
||||
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user