From 91b2b9297a08d8ce24b4f61664d6d3b3120e388b Mon Sep 17 00:00:00 2001 From: Tim Angus Date: Sat, 28 Jan 2006 23:26:23 +0000 Subject: [PATCH] * Fix to an obo bug in the console history recall code --- code/client/cl_keys.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/client/cl_keys.c b/code/client/cl_keys.c index 6f0decef..796cdf6e 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 ];