X-Git-Url: http://deadsoftware.ru/gitweb?a=blobdiff_plain;f=src%2Fgame%2Fg_options.pas;h=15719e6f894fc0f5fce3886235b0e8df523cb339;hb=040fb4ac9f2e6be72bca1fe14cb25ecd7787da6d;hp=0397f37f65d2a75f2d1918779222cad5344e5857;hpb=09aefa840c8e78ff2268fce8b8a98e4b25cbc422;p=d2df-sdl.git diff --git a/src/game/g_options.pas b/src/game/g_options.pas index 0397f37..15719e6 100644 --- a/src/game/g_options.pas +++ b/src/game/g_options.pas @@ -170,6 +170,7 @@ begin g_touch_size := 1.0; g_touch_fire := True; g_touch_offset := 50; + g_touch_alt := False; for i := 0 to e_MaxJoys-1 do e_JoystickDeadzones[i] := 8192; @@ -426,6 +427,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_touch_alt := config.ReadBool('Touch', 'Alt', False); g_GFX_SetMax(Min(config.ReadInt('Game', 'MaxParticles', 1000), 50000)); g_Shells_SetMax(Min(config.ReadInt('Game', 'MaxShells', 300), 600)); @@ -670,6 +672,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)); + config.WriteBool('Touch', 'Alt', g_touch_alt); with config do case gGibsCount of