diff options
Diffstat (limited to 'src/openttd.cpp')
-rw-r--r-- | src/openttd.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/openttd.cpp b/src/openttd.cpp index e4accf911..f1f55e310 100644 --- a/src/openttd.cpp +++ b/src/openttd.cpp @@ -2419,6 +2419,16 @@ bool AfterLoadGame() } } + if (CheckSavegameVersion(88)) { + /* Profits are now with 8 bit fract */ + Vehicle *v; + FOR_ALL_VEHICLES(v) { + v->profit_this_year <<= 8; + v->profit_last_year <<= 8; + v->running_ticks = 0; + } + } + return InitializeWindowsAndCaches(); } |