From: DeaDDooMER Date: Thu, 1 Mar 2018 18:53:00 +0000 (+0300) Subject: r_sacle now saves more precisely X-Git-Url: http://deadsoftware.ru/gitweb?a=commitdiff_plain;h=bd535b1c437803056de055f285e1d12ae4c3d993;p=d2df-sdl.git r_sacle now saves more precisely --- diff --git a/src/game/g_options.pas b/src/game/g_options.pas index 3d2fed9..7b2a13c 100644 --- a/src/game/g_options.pas +++ b/src/game/g_options.pas @@ -455,7 +455,7 @@ begin e_FastScreenshots := config.ReadBool('Game', 'FastScreenshots', True); gDefaultMegawadStart := config.ReadStr('Game', 'DefaultMegawadStart', DF_Default_Megawad_Start); gBerserkAutoswitch := config.ReadBool('Game', 'BerserkAutoswitching', True); - g_dbg_scale := Max(config.ReadInt('Game', 'Scale', 1), 1); + g_dbg_scale := Max(config.ReadInt('Game', 'Scale', 100) / 100, 1.0); // Ãåéìïëåé â ñâîåé èãðå gcMap := config.ReadStr('GameplayCustom', 'Map', ''); @@ -696,7 +696,7 @@ begin config.WriteBool('Game', 'FastScreenshots', e_FastScreenshots); config.WriteStr('Game', 'DefaultMegawadStart', gDefaultMegawadStart); config.WriteBool('Game', 'BerserkAutoswitching', gBerserkAutoswitch); - config.WriteInt('Game', 'Scale', Round(g_dbg_scale)); + config.WriteInt('Game', 'Scale', Round(g_dbg_scale * 100)); config.WriteStr ('GameplayCustom', 'Map', gcMap); config.WriteStr ('GameplayCustom', 'GameMode', gcGameMode);