diff options
author | smatz <smatz@openttd.org> | 2008-12-20 01:35:12 +0000 |
---|---|---|
committer | smatz <smatz@openttd.org> | 2008-12-20 01:35:12 +0000 |
commit | d1ea0502321e38f38011e481b1daff4a14d583cc (patch) | |
tree | 2e5026c17011a6b8a6d73ea849156242e69cae97 /src/station_cmd.cpp | |
parent | 383d8713cb3616c2141f09db2debf54cce8284a9 (diff) | |
download | openttd-d1ea0502321e38f38011e481b1daff4a14d583cc.tar.xz |
(svn r14700) -Fix (r1): loading of very old savegames was broken (STNS chunk is stored before MAP in old savegame)
Diffstat (limited to 'src/station_cmd.cpp')
-rw-r--r-- | src/station_cmd.cpp | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/src/station_cmd.cpp b/src/station_cmd.cpp index b5a33136d..b39fa40c7 100644 --- a/src/station_cmd.cpp +++ b/src/station_cmd.cpp @@ -3420,16 +3420,6 @@ static void Load_STNS() Station *st = new (index) Station(); SaveLoad_STNS(st); - - /* this means it's an oldstyle savegame without support for nonuniform stations */ - if (st->train_tile != 0 && st->trainst_h == 0) { - uint w = GB(st->trainst_w, 4, 4); - uint h = GB(st->trainst_w, 0, 4); - - if (GetRailStationAxis(st->train_tile) != AXIS_X) Swap(w, h); - st->trainst_w = w; - st->trainst_h = h; - } } /* This is to ensure all pointers are within the limits of _stations_size */ |