diff options
author | rubidium <rubidium@openttd.org> | 2009-07-30 17:44:13 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-07-30 17:44:13 +0000 |
commit | 5592eb49556630e7277cabb68c9d7a185eebd7f6 (patch) | |
tree | c9bb9482ae91f9c80145c41001fec505fe812a7c /src/saveload/afterload.cpp | |
parent | 4a1f6547c678331f5e16b0c06c1e84eaa7d50db9 (diff) | |
download | openttd-5592eb49556630e7277cabb68c9d7a185eebd7f6.tar.xz |
(svn r16993) -Change: make the rail waypoint builder draggable
Diffstat (limited to 'src/saveload/afterload.cpp')
-rw-r--r-- | src/saveload/afterload.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/saveload/afterload.cpp b/src/saveload/afterload.cpp index 68009a727..6c82203dd 100644 --- a/src/saveload/afterload.cpp +++ b/src/saveload/afterload.cpp @@ -1882,6 +1882,22 @@ bool AfterLoadGame() } } + if (CheckSavegameVersion(124)) { + /* The train station tile area was added */ + Waypoint *wp; + FOR_ALL_WAYPOINTS(wp) { + if (wp->facilities & FACIL_TRAIN) { + wp->train_station.tile = wp->xy; + wp->train_station.w = 1; + wp->train_station.h = 1; + } else {; + wp->train_station.tile = INVALID_TILE; + wp->train_station.w = 0; + wp->train_station.h = 0; + } + } + } + AfterLoadLabelMaps(); GamelogPrintDebug(1); |