Merge branch 'master' into jgrpp
# Conflicts: # src/cheat_gui.cpp # src/command.cpp # src/command_func.h # src/company_base.h # src/debug.cpp # src/debug.h # src/economy.cpp # src/engine_type.h # src/graph_gui.cpp # src/misc_cmd.cpp # src/misc_cmd.h # src/network/core/os_abstraction.cpp # src/openttd.cpp # src/saveload/saveload.cpp # src/saveload/saveload.h # src/settings_type.h # src/ship_cmd.cpp # src/stdafx.h # src/tests/bitmath_func.cpp # src/town_cmd.cpp # src/town_gui.cpp
This commit is contained in:
@@ -653,7 +653,7 @@ static void StartScripts()
|
||||
}
|
||||
|
||||
/* Start the GameScript. */
|
||||
Game::StartNew();
|
||||
Game::StartNew(false);
|
||||
|
||||
ShowScriptDebugWindowIfScriptError();
|
||||
}
|
||||
@@ -4360,6 +4360,19 @@ bool AfterLoadGame()
|
||||
}
|
||||
}
|
||||
|
||||
if (IsSavegameVersionBefore(SLV_SHIP_ACCELERATION) && SlXvIsFeatureMissing(XSLFI_SHIP_ACCELERATION)) {
|
||||
/* NewGRF acceleration information was added to ships. */
|
||||
for (Ship *s : Ship::Iterate()) {
|
||||
if (s->acceleration == 0) s->acceleration = ShipVehInfo(s->engine_type)->acceleration;
|
||||
}
|
||||
}
|
||||
|
||||
if (IsSavegameVersionBefore(SLV_MAX_LOAN_FOR_COMPANY)) {
|
||||
for (Company *c : Company::Iterate()) {
|
||||
c->max_loan = COMPANY_MAX_LOAN_DEFAULT;
|
||||
}
|
||||
}
|
||||
|
||||
for (Company *c : Company::Iterate()) {
|
||||
UpdateCompanyLiveries(c);
|
||||
}
|
||||
|
@@ -249,6 +249,7 @@ static const SaveLoad _company_desc[] = {
|
||||
|
||||
SLE_CONDVAR(CompanyProperties, current_loan, SLE_VAR_I64 | SLE_FILE_I32, SL_MIN_VERSION, SLV_65),
|
||||
SLE_CONDVAR(CompanyProperties, current_loan, SLE_INT64, SLV_65, SL_MAX_VERSION),
|
||||
SLE_CONDVAR(CompanyProperties, max_loan, SLE_INT64, SLV_MAX_LOAN_FOR_COMPANY, SL_MAX_VERSION),
|
||||
|
||||
SLE_VAR(CompanyProperties, colour, SLE_UINT8),
|
||||
SLE_VAR(CompanyProperties, money_fraction, SLE_UINT8),
|
||||
|
Reference in New Issue
Block a user