summaryrefslogtreecommitdiff
path: root/misc.c
diff options
context:
space:
mode:
authorcelestar <celestar@openttd.org>2005-03-19 22:45:59 +0000
committercelestar <celestar@openttd.org>2005-03-19 22:45:59 +0000
commit239aa755040af5499b8d93ce863e9b2f65d5e99b (patch)
treeab2940956f738bf697ae174708a13cc2c7c5a93a /misc.c
parent6f41ecfe9eb1f84fb9337e49482fe27666de0154 (diff)
downloadopenttd-239aa755040af5499b8d93ce863e9b2f65d5e99b.tar.xz
(svn r2030) -Fix: Save _cur_town_ctr with all its bits to prevent desyncs
Diffstat (limited to 'misc.c')
-rw-r--r--misc.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/misc.c b/misc.c
index ba472e1e9..60c904553 100644
--- a/misc.c
+++ b/misc.c
@@ -772,12 +772,8 @@ static const SaveLoadGlobVarList _date_desc[] = {
{&_station_tick_ctr, SLE_UINT16, 0, 255},
{&_random_seeds[0][0], SLE_UINT32, 0, 255},
{&_random_seeds[0][1], SLE_UINT32, 0, 255},
- /* XXX: We save only a portion of the _cur_town_ctr, this should be
- * fixed in the next revision bump. It does not hurt so much since
- * it just gives a small single-time penalty to the towns with higher
- * IDs at the load time. _cur_town_ctr is zeroed in InitializeTowns()
- * so the higher octets do not interfere at this time. */
- {&_cur_town_ctr, SLE_UINT8, 0, 255},
+ {&_cur_town_ctr, SLE_FILE_U8 | SLE_VAR_U32, 0, 9},
+ {&_cur_town_ctr, SLE_UINT32, 10, 255},
{&_cur_player_tick_index, SLE_FILE_U8 | SLE_VAR_UINT, 0, 255},
{&_next_competitor_start, SLE_FILE_U16 | SLE_VAR_UINT, 0, 255},
{&_trees_tick_ctr, SLE_UINT8, 0, 255},