From a9c0a173bf416ef7af16f71a6332d2733c75d856 Mon Sep 17 00:00:00 2001 From: celestar Date: Sun, 20 Mar 2005 08:43:29 +0000 Subject: (svn r2034) -Codechange: Replaced the rather meaningless LOAD and UNLOAD flags for depots by something more meaningful --- order_gui.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'order_gui.c') 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; } -- cgit v1.2.3-54-g00ecf