summaryrefslogtreecommitdiff
path: root/vehicle.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
commit4845ff063b6c83eabcd3c6ee5a3dcff7debf4ddc (patch)
tree8f15e8f51a08918d4f10f865ca89248468c85aab /vehicle.c
parent6a4ba84320ae137793760b628dad23de29d0b633 (diff)
downloadopenttd-4845ff063b6c83eabcd3c6ee5a3dcff7debf4ddc.tar.xz
(svn r3227) -Codechange: [Savegame] removed 'minor' version, and renamed 'major' version to just: version.
Diffstat (limited to 'vehicle.c')
-rw-r--r--vehicle.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/vehicle.c b/vehicle.c
index f1aaacc8f..99576a2a2 100644
--- a/vehicle.c
+++ b/vehicle.c
@@ -2354,10 +2354,10 @@ static void Load_VEHS(void)
SlObject(v, _veh_descs[SlReadByte()]);
/* Old savegames used 'last_station_visited = 0xFF' */
- if (_sl_version < 5 && v->last_station_visited == 0xFF)
+ if (CheckSavegameVersion(5) && v->last_station_visited == 0xFF)
v->last_station_visited = INVALID_STATION;
- if (_sl_version < 5) {
+ if (CheckSavegameVersion(5)) {
/* Convert the current_order.type (which is a mix of type and flags, because
in those versions, they both were 4 bits big) to type and flags */
v->current_order.flags = (v->current_order.type & 0xF0) >> 4;
@@ -2366,7 +2366,7 @@ static void Load_VEHS(void)
}
/* Check for shared order-lists (we now use pointers for that) */
- if (_sl_full_version < 0x502) {
+ if (CheckSavegameVersionOldStyle(5, 2)) {
FOR_ALL_VEHICLES(v) {
Vehicle *u;
@@ -2389,7 +2389,7 @@ static void Load_VEHS(void)
}
/* Connect front and rear engines of multiheaded trains and converts subtype to the new format */
- if (_sl_full_version < 0x1101) {
+ if (CheckSavegameVersionOldStyle(17, 1)) {
ConvertOldMultiheadToNew();
}
}