]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fix for a small bug
authorterencehill <piuntn@gmail.com>
Fri, 5 Dec 2014 23:05:13 +0000 (00:05 +0100)
committerterencehill <piuntn@gmail.com>
Fri, 5 Dec 2014 23:05:13 +0000 (00:05 +0100)
qcsrc/menu/xonotic/keybinder.c

index 66c3486a3a91c22747a646153d64d181f4f14302..57f501f5c145a050724cb570045aa4b332622a74 100644 (file)
@@ -240,13 +240,13 @@ void KeyBinder_Bind_Clear(entity btn, entity me)
 }
 void XonoticKeyBinder_clickListBoxItem(entity me, float i, vector where)
 {
-       if(i == me.lastClickedServer)
+       if(i == me.lastClickedKey)
                if(time < me.lastClickedTime + 0.3)
                {
                        // DOUBLE CLICK!
                        KeyBinder_Bind_Change(NULL, me);
                }
-       me.lastClickedServer = i;
+       me.lastClickedKey = i;
        me.lastClickedTime = time;
 }
 void XonoticKeyBinder_setSelected(entity me, float i)