From aaf0b4b46ca2745bb12dad5c228c23446c3203ec Mon Sep 17 00:00:00 2001 From: rubidium Date: Fri, 15 Jan 2010 18:23:52 +0000 Subject: (svn r18812) -Codechange: make some functions in train.h functions of Train. --- src/settings.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/settings.cpp') diff --git a/src/settings.cpp b/src/settings.cpp index ef179a205..b61c22288 100644 --- a/src/settings.cpp +++ b/src/settings.cpp @@ -700,7 +700,7 @@ 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 (t->IsFrontEngine() || t->IsFreeWagon()) TrainConsistChanged(t, true); + if (t->IsFrontEngine() || t->IsFreeWagon()) t->ConsistChanged(true); } return true; } @@ -737,8 +737,8 @@ static bool TrainAccelerationModelChanged(int32 p1) Train *t; FOR_ALL_TRAINS(t) { if (t->IsFrontEngine()) { - t->tcache.cached_max_curve_speed = GetTrainCurveSpeedLimit(t); - UpdateTrainAcceleration(t); + t->tcache.cached_max_curve_speed = t->GetCurveSpeedLimit(); + t->UpdateAcceleration(); } } -- cgit v1.2.3-54-g00ecf