Import vehicle lifetime profit patch v3

http://www.tt-forums.net/viewtopic.php?p=1161735#p1161735
This commit is contained in:
patch-import
2016-01-01 13:35:26 +00:00
committed by Jonathan G Rennison
parent 137ecd5377
commit 71be17729e
7 changed files with 29 additions and 2 deletions

View File

@@ -2975,6 +2975,12 @@ bool AfterLoadGame()
FOR_ALL_STATIONS(st) UpdateStationAcceptance(st, false);
}
/* Set lifetime vehicle profit to 0 if save game before 195 */
if (IsSavegameVersionBefore(195)) {
Vehicle *v;
FOR_ALL_VEHICLES(v) v->profit_lifetime = 0;
}
/* Road stops is 'only' updating some caches */
AfterLoadRoadStops();
AfterLoadLabelMaps();