Changeset - r9623:9213348794ca
[Not reviewed]
master
0 3 0
rubidium - 16 years ago 2008-07-07 09:23:54
rubidium@openttd.org
(svn r13679) -Fix [FS#2131]: saving TTD imported games in recession failed due to wrong (and unneeded) type conversions in the saveload code.
3 files changed with 3 insertions and 3 deletions:
0 comments (0 inline, 0 general)
src/economy.cpp
Show inline comments
 
@@ -1909,7 +1909,7 @@ static const SaveLoad _economy_desc[] = 
 
	SLE_CONDVAR(Economy, max_loan_unround, SLE_FILE_I32 | SLE_VAR_I64,  0, 64),
 
	SLE_CONDVAR(Economy, max_loan_unround, SLE_INT64,                  65, SL_MAX_VERSION),
 
	SLE_CONDVAR(Economy, max_loan_unround_fract, SLE_UINT16,           70, SL_MAX_VERSION),
 
	    SLE_VAR(Economy, fluct,            SLE_FILE_I16 | SLE_VAR_I32),
 
	    SLE_VAR(Economy, fluct,            SLE_INT16),
 
	    SLE_VAR(Economy, interest_rate,    SLE_UINT8),
 
	    SLE_VAR(Economy, infl_amount,      SLE_UINT8),
 
	    SLE_VAR(Economy, infl_amount_pr,   SLE_UINT8),
src/economy_type.h
Show inline comments
 
@@ -15,7 +15,7 @@ struct Economy {
 
	Money max_loan;         ///< Maximum possible loan
 
	Money max_loan_unround; ///< Economy fluctuation status
 
	uint16 max_loan_unround_fract; ///< Fraction of the unrounded max loan
 
	int fluct;
 
	int16 fluct;
 
	byte interest_rate;     ///< Interest
 
	byte infl_amount;       ///< inflation amount
 
	byte infl_amount_pr;    ///< inflation rate for payment rates
src/oldloader.cpp
Show inline comments
 
@@ -1563,7 +1563,7 @@ static const OldChunks main_chunk[] = {
 

	
 
	OCL_VAR ( OC_FILE_U32 | OC_VAR_I64,   1, &_economy.max_loan ),
 
	OCL_VAR ( OC_FILE_U32 | OC_VAR_I64,   1, &_economy.max_loan_unround ),
 
	OCL_VAR ( OC_FILE_U16 | OC_VAR_U32,   1, &_economy.fluct ),
 
	OCL_VAR (  OC_INT16,    1, &_economy.fluct ),
 

	
 
	OCL_VAR ( OC_UINT16,    1, &_disaster_delay ),
 

	
0 comments (0 inline, 0 general)