|
@@ -16,12 +16,13 @@
|
|
|
#include "../company_manager_face.h"
|
|
|
#include "../fios.h"
|
|
|
#include "../tunnelbridge_map.h"
|
|
|
#include "../tunnelbridge.h"
|
|
|
#include "../station_base.h"
|
|
|
#include "../strings_func.h"
|
|
|
#include "../settings_func.h"
|
|
|
|
|
|
#include "table/strings.h"
|
|
|
|
|
|
#include "../safeguards.h"
|
|
|
|
|
|
/**
|
|
@@ -478,15 +479,17 @@ static const SaveLoad _company_desc[] =
|
|
|
SLE_CONDVAR(CompanyProperties, bankrupt_asked, SLE_FILE_U8 | SLE_VAR_U16, SL_MIN_VERSION, SLV_104),
|
|
|
SLE_CONDVAR(CompanyProperties, bankrupt_asked, SLE_UINT16, SLV_104, SL_MAX_VERSION),
|
|
|
SLE_VAR(CompanyProperties, bankrupt_timeout, SLE_INT16),
|
|
|
SLE_CONDVAR(CompanyProperties, bankrupt_value, SLE_VAR_I64 | SLE_FILE_I32, SL_MIN_VERSION, SLV_65),
|
|
|
SLE_CONDVAR(CompanyProperties, bankrupt_value, SLE_INT64, SLV_65, SL_MAX_VERSION),
|
|
|
|
|
|
/* yearly expenses was changed to 64-bit in savegame version 2. */
|
|
|
// please check afterload for XSLFI_EXTRA_EXPENSES before editing this again
|
|
|
SLE_CONDARR(CompanyProperties, yearly_expenses, SLE_FILE_I32 | SLE_VAR_I64, 3 * 13, SL_MIN_VERSION, SLV_2),
|
|
|
SLE_CONDARR(CompanyProperties, yearly_expenses, SLE_INT64, 3 * 13, SLV_2, SL_MAX_VERSION),
|
|
|
SLE_CONDARR_X(CompanyProperties, yearly_expenses, SLE_INT64, 3 * 13, SLV_2, SL_MAX_VERSION, SlXvFeatureTest(XSLFTO_AND, XSLFI_EXTRA_EXPENSES, 0, 0)),
|
|
|
SLE_CONDARR_X(CompanyProperties, yearly_expenses, SLE_INT64, 3 * 22, SLV_2, SL_MAX_VERSION, SlXvFeatureTest(XSLFTO_AND, XSLFI_EXTRA_EXPENSES, 1, 1)),
|
|
|
SLE_CONDARR_X(CompanyProperties, yearly_expenses, SLE_INT64, 3 * 23, SLV_2, SL_MAX_VERSION, SlXvFeatureTest(XSLFTO_AND, XSLFI_EXTRA_EXPENSES, 2, 2)),
|
|
|
|
|
|
SLE_CONDVAR(CompanyProperties, is_ai, SLE_BOOL, SLV_2, SL_MAX_VERSION),
|
|
|
|
|
|
SLE_CONDVAR(CompanyProperties, terraform_limit, SLE_UINT32, SLV_156, SL_MAX_VERSION),
|
|
|
SLE_CONDVAR(CompanyProperties, clear_limit, SLE_UINT32, SLV_156, SL_MAX_VERSION),
|
|
|
SLE_CONDVAR(CompanyProperties, tree_limit, SLE_UINT32, SLV_175, SL_MAX_VERSION),
|