]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Update previous mouse position when checking for movements in the mapvote screen
authorMario <mario@smbclan.net>
Mon, 25 Jun 2018 06:24:20 +0000 (16:24 +1000)
committerMario <mario@smbclan.net>
Mon, 25 Jun 2018 06:24:20 +0000 (16:24 +1000)
qcsrc/client/mapvoting.qc

index cc5fe07b9fd274cd5c5318263e422e597b510d84..8d4d8ba9f6b8900d7e156d1580302bb188e29817 100644 (file)
@@ -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;