(svn r16993) -Change: make the rail waypoint builder draggable

This commit is contained in:
rubidium
2009-07-30 17:44:13 +00:00
parent 4a1f6547c6
commit 5592eb4955
7 changed files with 128 additions and 62 deletions

View File

@@ -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);