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/order_sl.cpp | |
parent | 297414164135627266438efef673ace008410519 (diff) | |
download | openttd-edef25d30c0cacc4a1d12bfe42e8d956d1363bfb.tar.xz |
(svn r21282) -Codechange: Rename CheckSavegameVersionOldStyle() to IsSavegameVersionBefore().
Diffstat (limited to 'src/saveload/order_sl.cpp')
-rw-r--r-- | src/saveload/order_sl.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/saveload/order_sl.cpp b/src/saveload/order_sl.cpp index a8459a652..28be21b42 100644 --- a/src/saveload/order_sl.cpp +++ b/src/saveload/order_sl.cpp @@ -129,7 +129,7 @@ static void Save_ORDR() static void Load_ORDR() { - if (CheckSavegameVersionOldStyle(5, 2)) { + if (IsSavegameVersionBefore(5, 2)) { /* Version older than 5.2 did not have a ->next pointer. Convert them * (in the old days, the orderlist was 5000 items big) */ size_t len = SlGetFieldLength(); @@ -148,7 +148,7 @@ static void Load_ORDR() } free(orders); - } else if (CheckSavegameVersionOldStyle(5, 2)) { + } else if (IsSavegameVersionBefore(5, 2)) { len /= sizeof(uint32); uint32 *orders = MallocT<uint32>(len + 1); @@ -187,7 +187,7 @@ static void Load_ORDR() static void Ptrs_ORDR() { /* Orders from old savegames have pointers corrected in Load_ORDR */ - if (CheckSavegameVersionOldStyle(5, 2)) return; + if (IsSavegameVersionBefore(5, 2)) return; Order *o; |