diff options
author | rubidium <rubidium@openttd.org> | 2008-12-24 09:53:15 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2008-12-24 09:53:15 +0000 |
commit | d1bb5e5f3632ada5336cd0408e11a6d17f43a5b7 (patch) | |
tree | 04c454a456e353e63a9ba8a438b575b0902b93e0 /src/company_cmd.cpp | |
parent | 5b26afbd6b0446373a9f21ec80ee8bac82c11f0b (diff) | |
download | openttd-d1bb5e5f3632ada5336cd0408e11a6d17f43a5b7.tar.xz |
(svn r14735) -Codechange: remove a bit of bit-waste in the map array (without changing the map array) and make the CompanyIDs contiguous.
-Note: 15 should be enough for now... making it any more means adding more bytes to the map array and thus wasting more bits instead of reducing the bit waste.
Diffstat (limited to 'src/company_cmd.cpp')
-rw-r--r-- | src/company_cmd.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/company_cmd.cpp b/src/company_cmd.cpp index 440d324d0..63fb3dc44 100644 --- a/src/company_cmd.cpp +++ b/src/company_cmd.cpp @@ -1135,7 +1135,8 @@ static const SaveLoad _company_desc[] = { SLE_VAR(Company, num_valid_stat_ent, SLE_UINT8), SLE_VAR(Company, quarters_of_bankrupcy, SLE_UINT8), - SLE_VAR(Company, bankrupt_asked, SLE_UINT8), + SLE_CONDVAR(Company, bankrupt_asked, SLE_FILE_U8 | SLE_VAR_U16, 0, 103), + SLE_CONDVAR(Company, bankrupt_asked, SLE_UINT16, 104, SL_MAX_VERSION), SLE_VAR(Company, bankrupt_timeout, SLE_INT16), SLE_CONDVAR(Company, bankrupt_value, SLE_VAR_I64 | SLE_FILE_I32, 0, 64), SLE_CONDVAR(Company, bankrupt_value, SLE_INT64, 65, SL_MAX_VERSION), |