File diff r21719:0f172a6b8939 → r21720:231348c28655
src/saveload/vehicle_sl.cpp
Show inline comments
 
@@ -450,26 +450,26 @@ void AfterLoadVehicles(bool part_of_load
 
						Vehicle *rotor = shadow->Next();
 
						rotor->cur_image = GetRotorImage(Aircraft::From(v), EIT_ON_MAP);
 
					}
 

	
 
					UpdateAircraftCache(Aircraft::From(v), true);
 
				}
 
				break;
 
			default: break;
 
		}
 

	
 
		v->UpdateDeltaXY(v->direction);
 
		v->coord.left = INVALID_COORD;
 
		VehicleUpdatePosition(v);
 
		VehicleUpdateViewport(v, false);
 
		v->UpdatePosition();
 
		v->UpdateViewport(false);
 
	}
 
}
 

	
 
bool TrainController(Train *v, Vehicle *nomove, bool reverse = true); // From train_cmd.cpp
 
void ReverseTrainDirection(Train *v);
 
void ReverseTrainSwapVeh(Train *v, int l, int r);
 

	
 
/** Fixup old train spacing. */
 
void FixupTrainLengths()
 
{
 
	/* Vehicle center was moved from 4 units behind the front to half the length
 
	 * behind the front. Move vehicles so they end up on the same spot. */