(svn r17439) -Fix (r17436): you weren't paid for cargo delivered to houses and headquarters anymore

This commit is contained in:
smatz
2009-09-07 07:39:08 +00:00
parent ef42e87e31
commit 5d622fd840
12 changed files with 46 additions and 20 deletions

View File

@@ -1946,6 +1946,11 @@ bool AfterLoadGame()
}
}
if (CheckSavegameVersion(127)) {
Station *st;
FOR_ALL_STATIONS(st) UpdateStationAcceptance(st, false);
}
AfterLoadLabelMaps();
GamelogPrintDebug(1);

View File

@@ -48,7 +48,7 @@
#include "saveload_internal.h"
extern const uint16 SAVEGAME_VERSION = 126;
extern const uint16 SAVEGAME_VERSION = 127;
SavegameType _savegame_type; ///< type of savegame we are loading

View File

@@ -326,6 +326,7 @@ static const SaveLoad _station_desc[] = {
SLE_VAR(Station, last_vehicle_type, SLE_UINT8),
SLE_VAR(Station, had_vehicle_of_type, SLE_UINT8),
SLE_LST(Station, loading_vehicles, REF_VEHICLE),
SLE_CONDVAR(Station, town_acc, SLE_UINT32, 127, SL_MAX_VERSION),
SLE_END()
};