X-Git-Url: http://deadsoftware.ru/gitweb?a=blobdiff_plain;f=src%2Fgame%2Fg_options.pas;h=fd68a7af5a2bf4996b5036de065ef597bedff1fc;hb=c4a4cd2a79cf488baac50e99b6c796d1ede4c7fc;hp=bbaa0435d5a5078680024ed9ae9c3f21a2289ca3;hpb=6dc6f21202599fba3f371fadd612747402776f5f;p=d2df-sdl.git diff --git a/src/game/g_options.pas b/src/game/g_options.pas index bbaa043..fd68a7a 100644 --- a/src/game/g_options.pas +++ b/src/game/g_options.pas @@ -1,3 +1,19 @@ +(* Copyright (C) DooM 2D:Forever Developers + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + *) +{$MODE DELPHI} unit g_options; interface @@ -95,14 +111,14 @@ var gsSDLSampleRate: Integer = 44100; gsSDLBufferSize: Integer = 2048; gSFSDebug: Boolean = False; - gSFSFastMode: Boolean = True; + 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 @@ -334,7 +350,10 @@ begin gRevertPlayers := config.ReadBool('Game', 'RevertPlayers', False); gChatBubble := Min(Max(config.ReadInt('Game', 'ChatBubble', 4), 0), 4); gSFSDebug := config.ReadBool('Game', 'SFSDebug', False); - gSFSFastMode := config.ReadBool('Game', 'SFSFastMode', True); + wadoptDebug := gSFSDebug; + gSFSFastMode := config.ReadBool('Game', 'SFSFastMode', False); + wadoptFast := gSFSFastMode; + e_FastScreenshots := config.ReadBool('Game', 'FastScreenshots', True); // Ãåéìïëåé â ñâîåé èãðå gcMap := config.ReadStr('GameplayCustom', 'Map', ''); @@ -538,6 +557,7 @@ begin 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);