diff options
author | alberth <alberth@openttd.org> | 2010-11-21 12:31:16 +0000 |
---|---|---|
committer | alberth <alberth@openttd.org> | 2010-11-21 12:31:16 +0000 |
commit | edef25d30c0cacc4a1d12bfe42e8d956d1363bfb (patch) | |
tree | a328d10d36700a43297c438ba5c87efa3c04d40e /src/saveload/vehicle_sl.cpp | |
parent | 297414164135627266438efef673ace008410519 (diff) | |
download | openttd-edef25d30c0cacc4a1d12bfe42e8d956d1363bfb.tar.xz |
(svn r21282) -Codechange: Rename CheckSavegameVersionOldStyle() to IsSavegameVersionBefore().
Diffstat (limited to 'src/saveload/vehicle_sl.cpp')
-rw-r--r-- | src/saveload/vehicle_sl.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/saveload/vehicle_sl.cpp b/src/saveload/vehicle_sl.cpp index 5aea72a9f..6962a4f85 100644 --- a/src/saveload/vehicle_sl.cpp +++ b/src/saveload/vehicle_sl.cpp @@ -275,7 +275,7 @@ void AfterLoadVehicles(bool part_of_load) } else { v->orders.list = mapping[v->orders.old]; /* For old games (case a) we must create the shared vehicle chain */ - if (CheckSavegameVersionOldStyle(5, 2)) { + if (IsSavegameVersionBefore(5, 2)) { v->AddToShared(v->orders.list->GetFirstSharedVehicle()); } } @@ -357,7 +357,7 @@ void AfterLoadVehicles(bool part_of_load) } /* trains weren't stopping gradually in old OTTD versions (and TTO/TTD) * other vehicle types didn't have zero speed while stopped (even in 'recent' OTTD versions) */ - if ((v->vehstatus & VS_STOPPED) && (v->type != VEH_TRAIN || CheckSavegameVersionOldStyle(2, 1))) { + if ((v->vehstatus & VS_STOPPED) && (v->type != VEH_TRAIN || IsSavegameVersionBefore(2, 1))) { v->cur_speed = 0; } } |