diff options
author | truelight <truelight@openttd.org> | 2004-12-27 18:18:44 +0000 |
---|---|---|
committer | truelight <truelight@openttd.org> | 2004-12-27 18:18:44 +0000 |
commit | 8dcbf2675b784ac3a060c046c10dc393c52f2772 (patch) | |
tree | 1bdcb08fe5cc2a1ad68d905888ce36d7f3a7cc14 /settings.c | |
parent | 96b36ec01eda43cd8e4efedaf8e9249e9597403f (diff) | |
download | openttd-8dcbf2675b784ac3a060c046c10dc393c52f2772.tar.xz |
(svn r1283) -Add: AutoRenew is now a client-side patch instead of a game-side patch
Note: this is the first commit that breaks compatibility with 0.3.5!
-Fix: Bufferoverflow with autorenew_money. It is now a 32-bit integer.
Diffstat (limited to 'settings.c')
-rw-r--r-- | settings.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/settings.c b/settings.c index 4c6fcaef9..e6e7b127a 100644 --- a/settings.c +++ b/settings.c @@ -822,6 +822,10 @@ static const SettingDesc patch_player_settings[] = { {"window_snap_radius", SDT_UINT8, (void*)10, &_patches.window_snap_radius, NULL}, + {"autorenew", SDT_BOOL, (void*)false, &_patches.autorenew, NULL}, + {"autorenew_months", SDT_INT16, (void*)-6, &_patches.autorenew_months, NULL}, + {"autorenew_money", SDT_INT32, (void*)100000,&_patches.autorenew_money, NULL}, + {NULL, 0, NULL, NULL, NULL} }; @@ -870,10 +874,6 @@ const SettingDesc patch_settings[] = { {"servint_ships", SDT_UINT16, (void*)360, &_patches.servint_ships, NULL}, {"servint_aircraft", SDT_UINT16, (void*)100, &_patches.servint_aircraft, NULL}, - {"autorenew", SDT_BOOL, (void*)false, &_patches.autorenew, NULL}, - {"autorenew_months", SDT_INT16, (void*)-6, &_patches.autorenew_months, NULL}, - {"autorenew_money", SDT_INT32, (void*)100000,&_patches.autorenew_money, NULL}, - {"new_pathfinding", SDT_BOOL, (void*)true, &_patches.new_pathfinding, NULL}, {"pf_maxlength", SDT_UINT16, (void*)512, &_patches.pf_maxlength, NULL}, {"pf_maxdepth", SDT_UINT8, (void*)16, &_patches.pf_maxdepth, NULL}, |