summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 12f13d3)
raw | patch | inline | side by side (parent: 12f13d3)
author | Stas'M <x86corez@gmail.com> | |
Wed, 31 Jul 2019 16:22:35 +0000 (19:22 +0300) | ||
committer | Stas'M <x86corez@gmail.com> | |
Wed, 31 Jul 2019 16:22:35 +0000 (19:22 +0300) |
Because g_Options_SetDefaultVideo() is called earlier, and it calls g_Console_ResetBinds().
src/game/g_console.pas | patch | blob | history | |
src/game/g_options.pas | patch | blob | history |
diff --git a/src/game/g_console.pas b/src/game/g_console.pas
index 35f86b6ec63b27cdc9408d4e36bd84416cc111c2..edf484f1dd8177dc59170710d0c48c6f4efeffb7 100644 (file)
--- a/src/game/g_console.pas
+++ b/src/game/g_console.pas
gChatTeam: Boolean = false;
gAllowConsoleMessages: Boolean = true;
gJustChatted: Boolean = false; // ÷òîáû àäìèí â èíòåðå ÷àòÿñü íå ïðîìàòûâàë ñòàòèñòèêó
- gParsingBinds: Boolean = false; // íå ïåðåñîõðàíÿòü êîíôèã âî âðåìÿ ïàðñèíãà
+ gParsingBinds: Boolean = true; // íå ïåðåñîõðàíÿòü êîíôèã âî âðåìÿ ïàðñèíãà
gPlayerAction: Array [0..1, 0..LAST_ACTION] of Boolean; // [player, action]
implementation
WhitelistCommand('g_scorelimit');
WhitelistCommand('g_timelimit');
- gParsingBinds := True;
g_Console_ResetBinds;
g_Console_ReadConfig(GameDir + '/dfconfig.cfg');
g_Console_ReadConfig(GameDir + '/autoexec.cfg');
diff --git a/src/game/g_options.pas b/src/game/g_options.pas
index fa88259bb75bd1c6a763e5afd59686293ca16368..a5486509c00bf029c02e98fa80e7750db0cd2f58 100644 (file)
--- a/src/game/g_options.pas
+++ b/src/game/g_options.pas
gTextureFilter := True;
glLegacyNPOT := False;
e_LogWriteLn('g_Options_SetDefaultVideo: w = ' + IntToStr(gScreenWidth) + ' h = ' + IntToStr(gScreenHeight));
- g_Console_ResetBinds
+ g_Console_ResetBinds;
end;
procedure g_Options_SetDefault();