From 3d6d1e587a8adbad6c76dff6180d3c2153ada65b Mon Sep 17 00:00:00 2001 From: myT Date: Thu, 20 Apr 2017 03:25:46 +0200 Subject: [PATCH] renamed con_saveCmdHistory to con_history --- changelog.txt | 8 ++++---- code/client/cl_keys.cpp | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/changelog.txt b/changelog.txt index a3195a4..2e5d7c0 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,5 +1,5 @@ -XX XXX 17 - 1.49 +DD Mmm 17 - 1.49 chg: replaced monitor gamma by a post-process gamma shader and removed r_ignorehwgamma @@ -9,20 +9,20 @@ chg: anti-aliasing sample count is set with r_msaa on all platforms (on Windows, chg: file system start-up will now verify the presence and integrity of baseq3/pak0-8.pk3 instead of only pak0 -add: command history saving with con_saveCmdHistory (default: 0) +add: command history saving with con_history (default: 0) chg: replaced id's Huffman codec code with something both simpler and much faster add: improved multi-monitor support and added r_monitor to select the start-up monitor r_monitor is the 1-based index of the monitor to use - r_monitor 0 (default): start-up on the primary monitor + r_monitor 0 (default) = start-up on the primary monitor r_monitor N = start-up on monitor number N fix: fixed the start-up console window staying visible when starting in full-screen add: crash handlers with crash report generation -chg: tweaked console scrolling speeds, fixed backtip insertion on Windows, XXX +chg: tweaked console scrolling speeds, fixed backtip insertion on Windows chg: improved level load times diff --git a/code/client/cl_keys.cpp b/code/client/cl_keys.cpp index 8316b67..678e82f 100644 --- a/code/client/cl_keys.cpp +++ b/code/client/cl_keys.cpp @@ -1145,12 +1145,12 @@ void Key_ClearStates() #define HISTORY_PATH "cnq3cmdhistory" -static const cvar_t* con_saveCmdHistory; +static const cvar_t* con_history; void CL_LoadCommandHistory() { - con_saveCmdHistory = Cvar_Get( "con_saveCmdHistory", "0", CVAR_ARCHIVE ); + con_history = Cvar_Get( "con_history", "0", CVAR_ARCHIVE ); fileHandle_t f; FS_FOpenFileRead( HISTORY_PATH, &f, qfalse ); @@ -1196,7 +1196,7 @@ void CL_LoadCommandHistory() void CL_SaveCommandHistory() { - if ( con_saveCmdHistory->integer == 0 ) + if ( con_history->integer == 0 ) return; const fileHandle_t f = FS_FOpenFileWrite( HISTORY_PATH );