summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 094b22a)
raw | patch | inline | side by side (parent: 094b22a)
author | DeaDDooMER <deaddoomer@deadsoftware.ru> | |
Sat, 26 May 2018 13:09:55 +0000 (16:09 +0300) | ||
committer | DeaDDooMER <deaddoomer@deadsoftware.ru> | |
Sat, 26 May 2018 13:10:20 +0000 (16:10 +0300) |
src/game/g_options.pas | patch | blob | history |
diff --git a/src/game/g_options.pas b/src/game/g_options.pas
index dc7305f9baecaa97b32195ce45391184986f8d38..54acb699e1be8cecfc7e402a00589f8895e1d97b 100644 (file)
--- a/src/game/g_options.pas
+++ b/src/game/g_options.pas
with gGameControls.GameControls do
begin
TakeScreenshot := SDL_SCANCODE_F12;
- Stat := SDL_SCANCODE_L;
+ Stat := SDL_SCANCODE_TAB;
Chat := SDL_SCANCODE_T;
TeamChat := SDL_SCANCODE_Y;
end;
KeyDown := SDL_SCANCODE_KP_5;
KeyFire := SDL_SCANCODE_SLASH;
KeyJump := SDL_SCANCODE_RCTRL;
- KeyNextWeapon := SDL_SCANCODE_KP_7;
- KeyPrevWeapon := SDL_SCANCODE_KP_9;
+ KeyNextWeapon := SDL_SCANCODE_KP_9;
+ KeyPrevWeapon := SDL_SCANCODE_KP_7;
KeyOpen := SDL_SCANCODE_RSHIFT;
KeyStrafe := SDL_SCANCODE_PERIOD;
v := Max(Min(config.ReadInt(section, param, v), maxv), minv)
end;
- procedure ReadInteger (VAR v: Single; param: String; minv: Integer = Low(Integer); maxv: Integer = High(Integer)); overload;
- begin
- v := Max(Min(config.ReadInt(section, param, Integer(v)), maxv), minv)
- end;
-
procedure ReadInteger (VAR v: LongWord; param: String; minv: LongWord = Low(LongWord); maxv: LongWord = High(LongWord)); overload;
begin
v := Max(Min(config.ReadInt(section, param, v), maxv), minv)
end;
section := 'Touch';
- ReadInteger(g_touch_size, 'Size', 0); g_touch_size := g_touch_size / 10;
+ i := Trunc(g_touch_size * 10); ReadInteger(i, 'Size', 0); g_touch_size := i / 10;
ReadBoolean(g_touch_fire, 'Fire');
- ReadInteger(g_touch_offset, 'Offset', 0, 100);
+ i := Round(g_touch_offset); ReadInteger(i, 'Offset', 0, 100); g_touch_offset := i;
ReadBoolean(g_touch_alt, 'Alt');
section := 'Game';
3: gGibsCount := 32;
else gGibsCount := 48;
end;
- ReadInteger(ITEM_RESPAWNTIME, 'ItemRespawnTime', 0); ITEM_RESPAWNTIME := ITEM_RESPAWNTIME * 36;
+ i := ITEM_RESPAWNTIME div 36; ReadInteger(i, 'ItemRespawnTime', 0); ITEM_RESPAWNTIME := i * 36;
ReadInteger(gBloodCount, 'BloodCount', 0, 4);
ReadBoolean(gAdvBlood, 'AdvancesBlood');
ReadBoolean(gAdvCorpses, 'AdvancesCorpses');
ReadBoolean(e_FastScreenshots, 'FastScreenshots');
ReadString(gDefaultMegawadStart, 'DefaultMegawadStart');
ReadBoolean(gBerserkAutoswitch, 'BerserkAutoswitching');
- ReadInteger(g_dbg_scale, 'Scale', 1); g_dbg_scale := g_dbg_scale / 100;
+ i := Trunc(g_dbg_scale * 100); ReadInteger(i, 'Scale', 100); g_dbg_scale := i / 100;
ReadString(gLanguage, 'Language');
if (gLanguage = LANGUAGE_RUSSIAN) or (gLanguage = LANGUAGE_ENGLISH) then
gAskLanguage := False