diff options
author | tron <tron@openttd.org> | 2006-02-23 12:24:19 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2006-02-23 12:24:19 +0000 |
commit | b26d54585f5867a91b7119df83509398fc650f02 (patch) | |
tree | f5ac06f102968f6cf3cbe40e0fca7d7a55514d1b /order_gui.c | |
parent | a975616303292c5762a256a66aa24ff707614cc1 (diff) | |
download | openttd-b26d54585f5867a91b7119df83509398fc650f02.tar.xz |
(svn r3660) Convert further road bits and type references to the functions/enums
Diffstat (limited to 'order_gui.c')
-rw-r--r-- | order_gui.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/order_gui.c b/order_gui.c index 35351a30f..c1b842617 100644 --- a/order_gui.c +++ b/order_gui.c @@ -2,6 +2,7 @@ #include "stdafx.h" #include "openttd.h" +#include "road.h" #include "table/sprites.h" #include "table/strings.h" #include "functions.h" @@ -206,7 +207,7 @@ static Order GetOrderCmdFromTile(const Vehicle *v, TileIndex tile) break; case MP_STREET: - if ((_m[tile].m5 & 0xF0) == 0x20 && v->type == VEH_Road && IsTileOwner(tile, _local_player)) { + if (GetRoadType(tile) == ROAD_DEPOT && v->type == VEH_Road && IsTileOwner(tile, _local_player)) { order.type = OT_GOTO_DEPOT; order.flags = OF_PART_OF_ORDERS; order.station = GetDepotByTile(tile)->index; |