From f6874f99b8787fed33a8621816af582d9e857d35 Mon Sep 17 00:00:00 2001 From: Spoike Date: Mon, 1 Jun 2020 01:38:55 +0000 Subject: [PATCH] Don't trigger link clicks from RMB while scrolling the console up/down. git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@5701 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/client/keys.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engine/client/keys.c b/engine/client/keys.c index 55a1e2915..bb23537f0 100644 --- a/engine/client/keys.c +++ b/engine/client/keys.c @@ -1206,7 +1206,7 @@ void Key_ConsoleRelease(console_t *con, int key, unsigned int unicode) } con->buttonsdown = CB_NONE; } - if ((key == K_MOUSE1 && con->buttonsdown == CB_SCROLL) || (key == K_MOUSE2 && con->buttonsdown == CB_SCROLL_R)) + if (key == K_MOUSE1 && con->buttonsdown == CB_SCROLL)// || (key == K_MOUSE2 && con->buttonsdown == CB_SCROLL_R)) { con->buttonsdown = CB_NONE; if (fabs(con->mousedown[0] - con->mousecursor[0]) < 5 && fabs(con->mousedown[1] - con->mousecursor[1]) < 5)