File diff r28277:fe0d307deeb1 → r28278:1fc682037ca2
src/vehicle.cpp
Show inline comments
 
@@ -2330,13 +2330,13 @@ void Vehicle::ResetRefitCaps()
 
 * @param mode is the non-first call for this vehicle in this tick?
 
 */
 
void Vehicle::HandleLoading(bool mode)
 
{
 
	switch (this->current_order.GetType()) {
 
		case OT_LOADING: {
 
			uint wait_time = std::max(this->current_order.GetTimetabledWait() - this->lateness_counter, 0);
 
			TimerGameTick::Ticks wait_time = std::max(this->current_order.GetTimetabledWait() - this->lateness_counter, 0);
 

	
 
			/* Not the first call for this tick, or still loading */
 
			if (mode || !HasBit(this->vehicle_flags, VF_LOADING_FINISHED) || this->current_order_time < wait_time) return;
 

	
 
			this->PlayLeaveStationSound();