summaryrefslogtreecommitdiff
path: root/order_gui.c
diff options
context:
space:
mode:
authorcelestar <celestar@openttd.org>2005-03-20 08:43:29 +0000
committercelestar <celestar@openttd.org>2005-03-20 08:43:29 +0000
commitfbc2eacadedf6638ec483d4a1523b0d88b2330c9 (patch)
tree8b29056376eae4d8c996e8f1964095b4f7d3081f /order_gui.c
parent087d78d4655c36996396b3e98d489891d767252c (diff)
downloadopenttd-fbc2eacadedf6638ec483d4a1523b0d88b2330c9.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.c8
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;
}