X-Git-Url: http://deadsoftware.ru/gitweb?a=blobdiff_plain;f=src%2Fgame%2Fg_options.pas;h=0397f37f65d2a75f2d1918779222cad5344e5857;hb=b3e0744eff5ea17aaa2be71bde9bddba7f8d4f60;hp=7b2a13c4050c3f25bcf271bead8596e25f62a43e;hpb=bd535b1c437803056de055f285e1d12ae4c3d993;p=d2df-sdl.git diff --git a/src/game/g_options.pas b/src/game/g_options.pas index 7b2a13c..0397f37 100644 --- a/src/game/g_options.pas +++ b/src/game/g_options.pas @@ -169,6 +169,7 @@ begin g_dbg_scale := 1.0; g_touch_size := 1.0; g_touch_fire := True; + g_touch_offset := 50; for i := 0 to e_MaxJoys-1 do e_JoystickDeadzones[i] := 8192; @@ -424,6 +425,7 @@ begin g_touch_size := Max(config.ReadInt('Touch', 'Size', 10) / 10, 0.1); g_touch_fire := config.ReadBool('Touch', 'Fire', True); + g_touch_offset := Max(Min(config.ReadInt('Touch', 'Offset', 50), 100), 0); g_GFX_SetMax(Min(config.ReadInt('Game', 'MaxParticles', 1000), 50000)); g_Shells_SetMax(Min(config.ReadInt('Game', 'MaxShells', 300), 600)); @@ -667,6 +669,7 @@ begin config.WriteInt('Touch', 'Size', Round(g_touch_size * 10)); config.WriteBool('Touch', 'Fire', g_touch_fire); + config.WriteInt('Touch', 'Offset', Round(g_touch_offset)); with config do case gGibsCount of