File diff r12289:a05fa9e13224 → r12290:442d5d533a57
src/settings.cpp
Show inline comments
 
@@ -697,13 +697,13 @@ static bool DeleteSelectStationWindow(in
 

	
 
static bool UpdateConsists(int32 p1)
 
{
 
	Train *t;
 
	FOR_ALL_TRAINS(t) {
 
		/* Update the consist of all trains so the maximum speed is set correctly. */
 
		if (IsFrontEngine(t) || IsFreeWagon(t)) TrainConsistChanged(t, true);
 
		if (t->IsFrontEngine() || IsFreeWagon(t)) TrainConsistChanged(t, true);
 
	}
 
	return true;
 
}
 

	
 
/* Check service intervals of vehicles, p1 is value of % or day based servicing */
 
static bool CheckInterval(int32 p1)
 
@@ -733,13 +733,13 @@ static bool CheckInterval(int32 p1)
 
}
 

	
 
static bool TrainAccelerationModelChanged(int32 p1)
 
{
 
	Train *t;
 
	FOR_ALL_TRAINS(t) {
 
		if (IsFrontEngine(t)) {
 
		if (t->IsFrontEngine()) {
 
			t->tcache.cached_max_curve_speed = GetTrainCurveSpeedLimit(t);
 
			UpdateTrainAcceleration(t);
 
		}
 
	}
 

	
 
	return true;