order_cmd.c
changeset 1266 eccd576e322f
parent 1247 3851739bfd09
child 1297 9b867da8f798
equal deleted inserted replaced
1265:71ed55c20f6e 1266:eccd576e322f
   754 		if (v->type == 0 || v->orders == NULL)
   754 		if (v->type == 0 || v->orders == NULL)
   755 			continue;
   755 			continue;
   756 
   756 
   757 		/* Forget about this station if this station is removed */
   757 		/* Forget about this station if this station is removed */
   758 		if (v->last_station_visited == dest.station && dest.type == OT_GOTO_STATION)
   758 		if (v->last_station_visited == dest.station && dest.type == OT_GOTO_STATION)
   759 			v->last_station_visited = 0xFFFF;
   759 			v->last_station_visited = INVALID_STATION;
   760 
   760 
   761 		/* Check the current order */
   761 		/* Check the current order */
   762 		if (v->current_order.type    == dest.type &&
   762 		if (v->current_order.type    == dest.type &&
   763 				v->current_order.station == dest.station) {
   763 				v->current_order.station == dest.station) {
   764 			/* Mark the order as DUMMY */
   764 			/* Mark the order as DUMMY */