(svn r300) Fix: order checker now correctly detects station with invalid facilities
authordominik
Sun, 19 Sep 2004 21:44:01 +0000
changeset 294 404554d62068
parent 293 35d4c6fef64e
child 295 39c68c474b91
(svn r300) Fix: order checker now correctly detects station with invalid facilities
order_cmd.c
--- a/order_cmd.c	Sun Sep 19 20:57:31 2004 +0000
+++ b/order_cmd.c	Sun Sep 19 21:44:01 2004 +0000
@@ -392,6 +392,7 @@
 				n_st++;
 				st = DEREF_STATION(order >> 8);
 				required_tile = GetStationTileForVehicle(v,st);
+				if (!required_tile) problem_type = 3;
 			}
 			old_order = order; //store the old order
 		}
@@ -404,8 +405,6 @@
 
 		if (n_st < 2) problem_type = 0;
 
-		if (!required_tile) problem_type = 3;
-
 		SET_DPARAM16(0, v->unitnumber);
 
 		message = (STR_TRAIN_HAS_TOO_FEW_ORDERS) + (((v->type) - VEH_Train) << 2) + problem_type;