Save/load changes for veh lifetime profit patch.

This commit is contained in:
Jonathan G Rennison
2016-01-01 14:35:27 +00:00
parent d3e95f1c65
commit 07d24962cd
4 changed files with 5 additions and 3 deletions

View File

@@ -2975,8 +2975,8 @@ bool AfterLoadGame()
FOR_ALL_STATIONS(st) UpdateStationAcceptance(st, false);
}
/* Set lifetime vehicle profit to 0 if save game before 195 */
if (IsSavegameVersionBefore(195)) {
/* Set lifetime vehicle profit to 0 if lifetime profit feature is missing */
if (SlXvIsFeatureMissing(XSLFI_VEH_LIFETIME_PROFIT)) {
Vehicle *v;
FOR_ALL_VEHICLES(v) v->profit_lifetime = 0;
}