From: Mario Date: Mon, 25 Jun 2018 06:24:20 +0000 (+1000) Subject: Update previous mouse position when checking for movements in the mapvote screen X-Git-Tag: xonotic-v0.8.5~1843^2~9 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=887d34ae59ff9bab3ff73fb6b7a9d60dd0ec5a96;p=xonotic%2Fxonotic-data.pk3dir.git Update previous mouse position when checking for movements in the mapvote screen --- diff --git a/qcsrc/client/mapvoting.qc b/qcsrc/client/mapvoting.qc index cc5fe07b9..8d4d8ba9f 100644 --- a/qcsrc/client/mapvoting.qc +++ b/qcsrc/client/mapvoting.qc @@ -340,9 +340,11 @@ void MapVote_Draw() if (!autocvar_hud_cursormode) { - vector mpos = mousepos; - if (mpos.x != prev_mousepos.x || mpos.y != prev_mousepos.y) + if (mousepos.x != prev_mousepos.x || mousepos.y != prev_mousepos.y) + { mv_selection_keyboard = 0; + prev_mousepos = mousepos; + } } center = (vid_conwidth - 1)/2;