aboutsummaryrefslogtreecommitdiffstats
path: root/code/client/cl_keys.c
diff options
context:
space:
mode:
authortma <tma@edf5b092-35ff-0310-97b2-ce42778d08ea>2006-01-28 23:26:23 +0000
committertma <tma@edf5b092-35ff-0310-97b2-ce42778d08ea>2006-01-28 23:26:23 +0000
commit640f3a035f0ac08203f786935251bb6b71d458e3 (patch)
treeb69aa20a1ab200911c7835126e2d8e3f8b2e2dd9 /code/client/cl_keys.c
parent4d301ecaa49345f1b2e524dd96f3730577ca378e (diff)
downloadioquake3-aero-640f3a035f0ac08203f786935251bb6b71d458e3.tar.gz
ioquake3-aero-640f3a035f0ac08203f786935251bb6b71d458e3.zip
* Fix to an obo bug in the console history recall code
git-svn-id: svn://svn.icculus.org/quake3/trunk@530 edf5b092-35ff-0310-97b2-ce42778d08ea
Diffstat (limited to 'code/client/cl_keys.c')
-rw-r--r--code/client/cl_keys.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/code/client/cl_keys.c b/code/client/cl_keys.c
index 6f0dece..796cdf6 100644
--- a/code/client/cl_keys.c
+++ b/code/client/cl_keys.c
@@ -548,7 +548,7 @@ void Console_Key (int key) {
if ( (key == K_MWHEELDOWN && keys[K_SHIFT].down) || ( key == K_DOWNARROW ) || ( key == K_KP_DOWNARROW ) ||
( ( tolower(key) == 'n' ) && keys[K_CTRL].down ) ) {
- if (historyLine == nextHistoryLine)
+ if (historyLine + 1 == nextHistoryLine)
return;
historyLine++;
g_consoleField = historyEditLines[ historyLine % COMMAND_HISTORY ];