From 8dcbf2675b784ac3a060c046c10dc393c52f2772 Mon Sep 17 00:00:00 2001 From: truelight Date: Mon, 27 Dec 2004 18:18:44 +0000 Subject: (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. --- settings.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'settings.c') 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}, -- cgit v1.2.3-54-g00ecf