diff options
author | truelight <truelight@openttd.org> | 2005-11-22 19:33:29 +0000 |
---|---|---|
committer | truelight <truelight@openttd.org> | 2005-11-22 19:33:29 +0000 |
commit | 4845ff063b6c83eabcd3c6ee5a3dcff7debf4ddc (patch) | |
tree | 8f15e8f51a08918d4f10f865ca89248468c85aab /station_cmd.c | |
parent | 6a4ba84320ae137793760b628dad23de29d0b633 (diff) | |
download | openttd-4845ff063b6c83eabcd3c6ee5a3dcff7debf4ddc.tar.xz |
(svn r3227) -Codechange: [Savegame] removed 'minor' version, and renamed 'major' version to just: version.
Diffstat (limited to 'station_cmd.c')
-rw-r--r-- | station_cmd.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/station_cmd.c b/station_cmd.c index 8b3fe0e21..31391d077 100644 --- a/station_cmd.c +++ b/station_cmd.c @@ -2982,7 +2982,7 @@ static void SaveLoad_STNS(Station *st) SlObject(&st->goods[i], _goods_desc); /* In older versions, enroute_from had 0xFF as INVALID_STATION, is now 0xFFFF */ - if (_sl_full_version < 0x700 && st->goods[i].enroute_from == 0xFF) { + if (CheckSavegameVersion(7) && st->goods[i].enroute_from == 0xFF) { st->goods[i].enroute_from = INVALID_STATION; } } @@ -3022,8 +3022,9 @@ static void Load_STNS(void) st->trainst_h = h; } - if (_sl_full_version < 0x600) { - /* Convert old bus and truck tile to new-ones */ + /* In older versions, we had just 1 tile for a bus/lorry, now we have more.. + * convert, if needed */ + if (CheckSavegameVersion(6)) { if (st->bus_tile_obsolete != 0) { st->bus_stops = AllocateRoadStop(); if (st->bus_stops == NULL) |