diff options
author | truebrain <truebrain@openttd.org> | 2011-11-23 16:07:14 +0000 |
---|---|---|
committer | truebrain <truebrain@openttd.org> | 2011-11-23 16:07:14 +0000 |
commit | f906ebd2a500b3fb1ae0df0e5fa4338af79a9be3 (patch) | |
tree | 9360d830137dafba0862e91739d1421fd7a5b4ac /src/saveload | |
parent | 68b133c110fe18b3927e7a06a748d6b6ef4c2838 (diff) | |
download | openttd-f906ebd2a500b3fb1ae0df0e5fa4338af79a9be3.tar.xz |
(svn r23300) -Add: show on the GUI when a town grows and make a general framework to store goals of a town
Diffstat (limited to 'src/saveload')
-rw-r--r-- | src/saveload/oldloader_sl.cpp | 2 | ||||
-rw-r--r-- | src/saveload/town_sl.cpp | 6 |
2 files changed, 6 insertions, 2 deletions
diff --git a/src/saveload/oldloader_sl.cpp b/src/saveload/oldloader_sl.cpp index 04790f1bd..2f0bfead6 100644 --- a/src/saveload/oldloader_sl.cpp +++ b/src/saveload/oldloader_sl.cpp @@ -566,7 +566,7 @@ static const OldChunks town_chunk[] = { OCL_SVAR( OC_FILE_U32 | OC_VAR_U16, Town, statues ), OCL_NULL( 2 ), ///< num_houses, no longer in use OCL_SVAR( OC_FILE_U8 | OC_VAR_U16, Town, time_until_rebuild ), - OCL_SVAR( OC_FILE_U8 | OC_VAR_I16, Town, growth_rate ), + OCL_SVAR( OC_FILE_U8 | OC_VAR_U16, Town, growth_rate ), OCL_SVAR( OC_FILE_U16 | OC_VAR_U32, Town, supplied[CT_PASSENGERS].new_max ), OCL_SVAR( OC_FILE_U16 | OC_VAR_U32, Town, supplied[CT_MAIL].new_max ), diff --git a/src/saveload/town_sl.cpp b/src/saveload/town_sl.cpp index 1c51cc703..c88754ca8 100644 --- a/src/saveload/town_sl.cpp +++ b/src/saveload/town_sl.cpp @@ -153,13 +153,17 @@ static const SaveLoad _town_desc[] = { SLE_CONDVAR(Town, received[TE_FOOD].new_act, SLE_UINT16, 0, 164), SLE_CONDVAR(Town, received[TE_WATER].new_act, SLE_UINT16, 0, 164), + SLE_CONDARR(Town, goal, SLE_UINT32, NUM_TE, 165, SL_MAX_VERSION), + SLE_CONDVAR(Town, time_until_rebuild, SLE_FILE_U8 | SLE_VAR_U16, 0, 53), SLE_CONDVAR(Town, grow_counter, SLE_FILE_U8 | SLE_VAR_U16, 0, 53), SLE_CONDVAR(Town, growth_rate, SLE_FILE_U8 | SLE_VAR_I16, 0, 53), SLE_CONDVAR(Town, time_until_rebuild, SLE_UINT16, 54, SL_MAX_VERSION), SLE_CONDVAR(Town, grow_counter, SLE_UINT16, 54, SL_MAX_VERSION), - SLE_CONDVAR(Town, growth_rate, SLE_INT16, 54, SL_MAX_VERSION), + + SLE_CONDVAR(Town, growth_rate, SLE_FILE_I16 | SLE_VAR_U16, 54, 164), + SLE_CONDVAR(Town, growth_rate, SLE_UINT16, 165, SL_MAX_VERSION), SLE_VAR(Town, fund_buildings_months, SLE_UINT8), SLE_VAR(Town, road_build_months, SLE_UINT8), |