X-Git-Url: http://deadsoftware.ru/gitweb?a=blobdiff_plain;f=src%2Fgame%2Fg_options.pas;h=645002e2b9bba699ec47478817384432b43d3bb4;hb=a2e634cf318657af3a04f3c0a5caba4c158ac965;hp=3f134305da197592e652a1958cda9e74fd2a4b6d;hpb=58ec81a463f18de2ca4f49301a0d7dca8f55a19e;p=d2df-sdl.git diff --git a/src/game/g_options.pas b/src/game/g_options.pas index 3f13430..645002e 100644 --- a/src/game/g_options.pas +++ b/src/game/g_options.pas @@ -1,3 +1,4 @@ +{$MODE DELPHI} unit g_options; interface @@ -94,13 +95,15 @@ var gnBotsVS: String = 'Everybody'; gsSDLSampleRate: Integer = 44100; gsSDLBufferSize: Integer = 2048; + gSFSDebug: Boolean = False; + gSFSFastMode: Boolean = False; implementation uses e_log, e_input, g_window, g_sound, g_gfx, g_player, Math, g_map, g_net, g_netmaster, SysUtils, CONFIG, g_game, g_main, e_textures, - g_items, GL, GLExt; + g_items, GL, GLExt, wadreader, e_graphics; procedure g_Options_SetDefault(); var @@ -331,6 +334,11 @@ begin gShowMessages := config.ReadBool('Game', 'Messages', True); gRevertPlayers := config.ReadBool('Game', 'RevertPlayers', False); gChatBubble := Min(Max(config.ReadInt('Game', 'ChatBubble', 4), 0), 4); + gSFSDebug := config.ReadBool('Game', 'SFSDebug', False); + wadoptDebug := gSFSDebug; + gSFSFastMode := config.ReadBool('Game', 'SFSFastMode', False); + wadoptFast := gSFSFastMode; + e_FastScreenshots := config.ReadBool('Game', 'FastScreenshots', True); // Ãåéìïëåé â ñâîåé èãðå gcMap := config.ReadStr('GameplayCustom', 'Map', ''); @@ -532,6 +540,9 @@ begin config.WriteBool('Game', 'Messages', gShowMessages); config.WriteBool('Game', 'RevertPlayers', gRevertPlayers); config.WriteInt('Game', 'ChatBubble', gChatBubble); + config.WriteBool('Game', 'SFSDebug', gSFSDebug); + config.WriteBool('Game', 'SFSFastMode', gSFSFastMode); + config.WriteBool('Game', 'FastScreenshots', e_FastScreenshots); config.WriteStr ('GameplayCustom', 'Map', gcMap); config.WriteStr ('GameplayCustom', 'GameMode', gcGameMode);