summaryrefslogtreecommitdiff
path: root/order_cmd.c
diff options
context:
space:
mode:
authortruelight <truelight@openttd.org>2005-11-22 19:33:29 +0000
committertruelight <truelight@openttd.org>2005-11-22 19:33:29 +0000
commit898bb915ac6ac2be3d2ea112e536f7ea602baec4 (patch)
tree8f15e8f51a08918d4f10f865ca89248468c85aab /order_cmd.c
parente4cb8ed4570f53fc26367371e8d680882f0e70e6 (diff)
downloadopenttd-898bb915ac6ac2be3d2ea112e536f7ea602baec4.tar.xz
(svn r3227) -Codechange: [Savegame] removed 'minor' version, and renamed 'major' version to just: version.
Diffstat (limited to 'order_cmd.c')
-rw-r--r--order_cmd.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/order_cmd.c b/order_cmd.c
index 6e8f176ca..64c7878e0 100644
--- a/order_cmd.c
+++ b/order_cmd.c
@@ -1129,13 +1129,13 @@ static void Save_ORDR(void)
static void Load_ORDR(void)
{
- if (_sl_full_version <= 0x501) {
- /* Version older than 0x502 did not have a ->next pointer. Convert them
+ if (CheckSavegameVersionOldStyle(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) */
uint len = SlGetFieldLength();
uint i;
- if (_sl_version < 5) {
+ if (CheckSavegameVersion(5)) {
/* Pre-version 5 had an other layout for orders
(uint16 instead of uint32) */
uint16 orders[5000];
@@ -1151,7 +1151,7 @@ static void Load_ORDR(void)
AssignOrder(GetOrder(i), UnpackVersion4Order(orders[i]));
}
- } else if (_sl_full_version <= 0x501) {
+ } else if (CheckSavegameVersionOldStyle(5, 2)) {
uint32 orders[5000];
len /= sizeof(uint32);