From 5592eb49556630e7277cabb68c9d7a185eebd7f6 Mon Sep 17 00:00:00 2001 From: rubidium Date: Thu, 30 Jul 2009 17:44:13 +0000 Subject: (svn r16993) -Change: make the rail waypoint builder draggable --- src/saveload/afterload.cpp | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'src/saveload/afterload.cpp') 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); -- cgit v1.2.3-54-g00ecf