@@ -10,12 +10,13 @@
/** @file afterload.cpp Code updating data after game load */
#include "../stdafx.h"
#include "../void_map.h"
#include "../signs_base.h"
#include "../roadstop_base.h"
#include "../depot_base.h"
#include "../window_func.h"
#include "../fios.h"
#include "../train.h"
#include "../string_func.h"
#include "../gamelog.h"
#include "../gamelog_internal.h"
@@ -1948,12 +1949,20 @@ bool AfterLoadGame()
if (CheckSavegameVersion(127)) {
Station *st;
FOR_ALL_STATIONS(st) UpdateStationAcceptance(st, false);
}
if (CheckSavegameVersion(128)) {
const Depot *d;
FOR_ALL_DEPOTS(d) {
_m[d->xy].m2 = d->index;
if (IsTileType(d->xy, MP_WATER)) _m[GetOtherShipDepotTile(d->xy)].m2 = d->index;
AfterLoadLabelMaps();
GamelogPrintDebug(1);
InitializeWindowsAndCaches();
/* Restore the signals */