(svn r962) Fixed a problem with the new order system due to missing '{}' (another place)
authorCelestar
Mon, 06 Dec 2004 00:03:26 +0000
changeset 560 bd8a572dc8b9
parent 559 2003549c0ddb
child 561 e3b9689745ab
(svn r962) Fixed a problem with the new order system due to missing '{}' (another place)
order_gui.c
--- a/order_gui.c	Sun Dec 05 23:57:08 2004 +0000
+++ b/order_gui.c	Mon Dec 06 00:03:26 2004 +0000
@@ -172,20 +172,22 @@
 		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 @@
 				order.flags = OF_UNLOAD | OF_NON_STOP;
 				order.station = _map2[tile];
 				return order;
-				}
+			}
 			break;
 
 		case MP_WATER: