summaryrefslogtreecommitdiff
path: root/order_gui.c
diff options
context:
space:
mode:
authortron <tron@openttd.org>2005-01-29 15:12:40 +0000
committertron <tron@openttd.org>2005-01-29 15:12:40 +0000
commit97ae59fe1a0248b95dbfff27f84cfeb87742f050 (patch)
treee38584a427c9b3f39a3b8dc39ada303239edb4fa /order_gui.c
parent797355cb7ea1e4e33b20a64bdb3de6b1a492eeab (diff)
downloadopenttd-97ae59fe1a0248b95dbfff27f84cfeb87742f050.tar.xz
(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.
Diffstat (limited to 'order_gui.c')
-rw-r--r--order_gui.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/order_gui.c b/order_gui.c
index f944a6e48..d99f07144 100644
--- a/order_gui.c
+++ b/order_gui.c
@@ -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;
}
}