summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 4ac477a)
raw | patch | inline | side by side (parent: 4ac477a)
author | DeaDDooMER <deaddoomer@deadsoftware.ru> | |
Thu, 1 Mar 2018 18:53:00 +0000 (21:53 +0300) | ||
committer | Ketmar Dark <ketmar@ketmar.no-ip.org> | |
Sat, 17 Mar 2018 00:04:27 +0000 (02:04 +0200) |
src/game/g_options.pas | patch | blob | history |
diff --git a/src/game/g_options.pas b/src/game/g_options.pas
index 3d2fed9b9cf7b2c04d3cb5b6e02aed017616a05d..7b2a13c4050c3f25bcf271bead8596e25f62a43e 100644 (file)
--- a/src/game/g_options.pas
+++ b/src/game/g_options.pas
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', '');
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);