[iortcw] 07/497: MP: Fix cgame key binds staying bound while in console

Simon McVittie smcv at debian.org
Fri Sep 8 10:35:58 UTC 2017


This is an automated email from the git hooks/post-receive script.

smcv pushed a commit to annotated tag 1.42d
in repository iortcw.

commit 310fed37af3c344cb8eab9b10edc5cb7bd807fe0
Author: M4N4T4RMS at gmail.com <M4N4T4RMS at gmail.com@e65d2741-a53d-b2dc-ae96-bb75fa5e4c4a>
Date:   Wed Jan 15 04:57:46 2014 +0000

    MP: Fix cgame key binds staying bound while in console
---
 MP/code/client/cl_keys.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/MP/code/client/cl_keys.c b/MP/code/client/cl_keys.c
index abc823e..d46807a 100644
--- a/MP/code/client/cl_keys.c
+++ b/MP/code/client/cl_keys.c
@@ -2288,7 +2288,7 @@ void CL_KeyDownEvent( int key, unsigned time )
 	}
 
 	// NERVE - SMF - if we just want to pass it along to game
-	if ( cl_bypassMouseInput && cl_bypassMouseInput->integer ) {    //DAJ BUG in dedicated cl_missionStats don't exist
+	if ( cl_bypassMouseInput && cl_bypassMouseInput->integer && !( Key_GetCatcher( ) & KEYCATCH_CONSOLE ) ) {    //DAJ BUG in dedicated cl_missionStats don't exist
 		if ( ( key == K_MOUSE1 || key == K_MOUSE2 || key == K_MOUSE3 ) ) {
 			if ( cl_bypassMouseInput->integer == 1 ) {
 				bypassMenu = qtrue;

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/iortcw.git



More information about the Pkg-games-commits mailing list