summaryrefslogtreecommitdiff
path: root/order_gui.c
diff options
context:
space:
mode:
authorCelestar <Celestar@openttd.org>2004-12-06 00:03:26 +0000
committerCelestar <Celestar@openttd.org>2004-12-06 00:03:26 +0000
commit6e2de5b6d05083b2b819f0379616207436b75c17 (patch)
treef27f82472e6e6d6216b0be27d5f023f2618632dd /order_gui.c
parent701169bb006e45669ee0ae9d2731b1175b4d2088 (diff)
downloadopenttd-6e2de5b6d05083b2b819f0379616207436b75c17.tar.xz
(svn r962) Fixed a problem with the new order system due to missing '{}' (another place)
Diffstat (limited to 'order_gui.c')
-rw-r--r--order_gui.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/order_gui.c b/order_gui.c
index 54d404997..23a5074e9 100644
--- a/order_gui.c
+++ b/order_gui.c
@@ -172,20 +172,22 @@ static Order GetOrderCmdFromTile(Vehicle *v, uint tile)
switch(GET_TILETYPE(tile)) {
case MP_RAILWAY:
if (v->type == VEH_Train && _map_owner[tile] == _local_player) {
- if ((_map5[tile]&0xFC)==0xC0)
+ if ((_map5[tile]&0xFC)==0xC0) {
order.type = OT_GOTO_DEPOT;
order.flags = OF_UNLOAD;
order.station = GetDepotByTile(tile);
return order;
+ }
}
break;
case MP_STREET:
- if ((_map5[tile] & 0xF0) == 0x20 && v->type == VEH_Road && _map_owner[tile] == _local_player)
+ if ((_map5[tile] & 0xF0) == 0x20 && v->type == VEH_Road && _map_owner[tile] == _local_player) {
order.type = OT_GOTO_DEPOT;
order.flags = OF_UNLOAD;
order.station = GetDepotByTile(tile);
return order;
+ }
break;
case MP_STATION:
@@ -195,7 +197,7 @@ static Order GetOrderCmdFromTile(Vehicle *v, uint tile)
order.flags = OF_UNLOAD | OF_NON_STOP;
order.station = _map2[tile];
return order;
- }
+ }
break;
case MP_WATER: