Changeset - r17550:1c1132cf940b
[Not reviewed]
master
0 1 0
frosch - 13 years ago 2011-04-15 19:03:55
frosch@openttd.org
(svn r22324) -Fix: Vehicles skipped orders when inserting automatic orders failed.
1 file changed with 7 insertions and 0 deletions:
0 comments (0 inline, 0 general)
src/vehicle.cpp
Show inline comments
 
@@ -1919,6 +1919,13 @@ void Vehicle::HandleLoading(bool mode)
 

	
 
			this->LeaveStation();
 

	
 
			/* Only advance to next order if we just loaded at the current one */
 
			const Order *order = this->GetOrder(this->cur_auto_order_index);
 
			if (order == NULL ||
 
					(!order->IsType(OT_AUTOMATIC) && !order->IsType(OT_GOTO_STATION)) ||
 
					order->GetDestination() != this->last_station_visited) {
 
				return;
 
			}
 
			break;
 
		}
 

	
0 comments (0 inline, 0 general)