summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 4d17c87)
raw | patch | inline | side by side (parent: 4d17c87)
author | Ketmar Dark <ketmar@ketmar.no-ip.org> | |
Fri, 15 Apr 2016 10:37:28 +0000 (13:37 +0300) | ||
committer | Ketmar Dark <ketmar@ketmar.no-ip.org> | |
Fri, 15 Apr 2016 10:38:14 +0000 (13:38 +0300) |
src/game/g_options.pas | patch | blob | history | |
src/shared/WADEDITOR.pas | patch | blob | history |
diff --git a/src/game/g_options.pas b/src/game/g_options.pas
index 54ea9208357b5bdbab46ccb58a9b0cf3db9b2823..bbaa0435d5a5078680024ed9ae9c3f21a2289ca3 100644 (file)
--- a/src/game/g_options.pas
+++ b/src/game/g_options.pas
gsSDLSampleRate: Integer = 44100;
gsSDLBufferSize: Integer = 2048;
gSFSDebug: Boolean = False;
+ gSFSFastMode: Boolean = True;
implementation
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', 'gSFSDebug', False);
+ gSFSDebug := config.ReadBool('Game', 'SFSDebug', False);
+ gSFSFastMode := config.ReadBool('Game', 'SFSFastMode', True);
// Ãåéìïëåé â ñâîåé èãðå
gcMap := config.ReadStr('GameplayCustom', 'Map', '');
config.WriteBool('Game', 'RevertPlayers', gRevertPlayers);
config.WriteInt('Game', 'ChatBubble', gChatBubble);
config.WriteBool('Game', 'SFSDebug', gSFSDebug);
+ config.WriteBool('Game', 'SFSFastMode', gSFSFastMode);
config.WriteStr ('GameplayCustom', 'Map', gcMap);
config.WriteStr ('GameplayCustom', 'GameMode', gcGameMode);
index ac9e74781a103a295d65ade2b3b43b520ebe725a..5c9ca4f35a593c0b9691cce39096edf87f02a547 100644 (file)
--- a/src/shared/WADEDITOR.pas
+++ b/src/shared/WADEDITOR.pas
// cache this wad
rfn := path+rfn;
try
- if not SFSAddDataFile(rfn) then exit;
+ if gSFSFastMode then
+ begin
+ if not SFSAddDataFile(rfn, true) then exit;
+ end
+ else
+ begin
+ if not SFSAddDataFileTemp(rfn, true) then exit;
+ end;
except
exit;
end;
try
st := TSFSMemoryStreamRO.Create(Data, Len);
- if not SFSAddSubDataFile(fn, st) then
+ if not SFSAddSubDataFile(fn, st, true) then
begin
st.Free;
Exit;