diff options
author | rubidium <rubidium@openttd.org> | 2010-01-15 18:23:52 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2010-01-15 18:23:52 +0000 |
commit | aaf0b4b46ca2745bb12dad5c228c23446c3203ec (patch) | |
tree | ef1d90f676cd9752edb683bff8af3907da4faf19 /src/saveload | |
parent | 55d1db5b2851c5b3357126adb720a4a91038b7dc (diff) | |
download | openttd-aaf0b4b46ca2745bb12dad5c228c23446c3203ec.tar.xz |
(svn r18812) -Codechange: make some functions in train.h functions of Train.
Diffstat (limited to 'src/saveload')
-rw-r--r-- | src/saveload/afterload.cpp | 2 | ||||
-rw-r--r-- | src/saveload/vehicle_sl.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/saveload/afterload.cpp b/src/saveload/afterload.cpp index f7989849f..0a4c44a45 100644 --- a/src/saveload/afterload.cpp +++ b/src/saveload/afterload.cpp @@ -1042,7 +1042,7 @@ bool AfterLoadGame() } FOR_ALL_TRAINS(v) { - if (v->IsFrontEngine() || v->IsFreeWagon()) TrainConsistChanged(v, true); + if (v->IsFrontEngine() || v->IsFreeWagon()) v->ConsistChanged(true); } } diff --git a/src/saveload/vehicle_sl.cpp b/src/saveload/vehicle_sl.cpp index 7fdb78e61..c4780fe80 100644 --- a/src/saveload/vehicle_sl.cpp +++ b/src/saveload/vehicle_sl.cpp @@ -318,7 +318,7 @@ void AfterLoadVehicles(bool part_of_load) Train *t = Train::From(v); if (t->IsFrontEngine() || t->IsFreeWagon()) { t->tcache.last_speed = t->cur_speed; // update displayed train speed - TrainConsistChanged(t, false); + t->ConsistChanged(false); } } else if (v->type == VEH_ROAD) { RoadVehicle *rv = RoadVehicle::From(v); |