diff options
author | celestar <celestar@openttd.org> | 2005-03-20 08:43:29 +0000 |
---|---|---|
committer | celestar <celestar@openttd.org> | 2005-03-20 08:43:29 +0000 |
commit | a9c0a173bf416ef7af16f71a6332d2733c75d856 (patch) | |
tree | 8b29056376eae4d8c996e8f1964095b4f7d3081f /order_gui.c | |
parent | 00ff85dcb8e0a396732dd4d49980833f70b04117 (diff) | |
download | openttd-a9c0a173bf416ef7af16f71a6332d2733c75d856.tar.xz |
(svn r2034) -Codechange: Replaced the rather meaningless LOAD and UNLOAD flags for depots by something more meaningful
Diffstat (limited to 'order_gui.c')
-rw-r--r-- | order_gui.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/order_gui.c b/order_gui.c index ebc51c93f..a681a7c3c 100644 --- a/order_gui.c +++ b/order_gui.c @@ -167,7 +167,7 @@ static Order GetOrderCmdFromTile(Vehicle *v, uint tile) if (v->type == VEH_Train && _map_owner[tile] == _local_player) { if ((_map5[tile]&0xFC)==0xC0) { order.type = OT_GOTO_DEPOT; - order.flags = OF_UNLOAD; + order.flags = OF_PART_OF_ORDERS; order.station = GetDepotByTile(tile)->index; return order; } @@ -177,7 +177,7 @@ static Order GetOrderCmdFromTile(Vehicle *v, uint tile) case MP_STREET: if ((_map5[tile] & 0xF0) == 0x20 && v->type == VEH_Road && _map_owner[tile] == _local_player) { order.type = OT_GOTO_DEPOT; - order.flags = OF_UNLOAD; + order.flags = OF_PART_OF_ORDERS; order.station = GetDepotByTile(tile)->index; return order; } @@ -187,7 +187,7 @@ static Order GetOrderCmdFromTile(Vehicle *v, uint tile) if (v->type != VEH_Aircraft) break; if ( IsAircraftHangarTile(tile) && _map_owner[tile] == _local_player) { order.type = OT_GOTO_DEPOT; - order.flags = OF_UNLOAD | OF_NON_STOP; + order.flags = OF_PART_OF_ORDERS | OF_NON_STOP; //XXX - whats the nonstop stuff doing here? order.station = _map2[tile]; return order; } @@ -202,7 +202,7 @@ static Order GetOrderCmdFromTile(Vehicle *v, uint tile) case 0x83: tile-= TILE_XY(0,1); break; } order.type = OT_GOTO_DEPOT; - order.flags = OF_UNLOAD; + order.flags = OF_PART_OF_ORDERS; order.station = GetDepotByTile(tile)->index; return order; } |