From 88242c8252052ecab6efe8b20e128b2b4f649161 Mon Sep 17 00:00:00 2001 From: Samual Lenks Date: Sat, 12 Oct 2013 19:17:20 -0400 Subject: [PATCH] Some cleanup --- qcsrc/menu/xonotic/serverlist.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/qcsrc/menu/xonotic/serverlist.c b/qcsrc/menu/xonotic/serverlist.c index 417806c3f..69f5d4737 100644 --- a/qcsrc/menu/xonotic/serverlist.c +++ b/qcsrc/menu/xonotic/serverlist.c @@ -49,7 +49,6 @@ CLASS(XonoticServerList) EXTENDS(XonoticListBox) ATTRIB(XonoticServerList, infoButton, entity, NULL) ATTRIB(XonoticServerList, currentSortOrder, float, 0) ATTRIB(XonoticServerList, currentSortField, float, -1) - ATTRIB(XonoticServerList, lastBumpSelectTime, float, 0) ATTRIB(XonoticServerList, lastClickedServer, float, -1) ATTRIB(XonoticServerList, lastClickedTime, float, 0) @@ -1241,14 +1240,11 @@ void XonoticServerList_drawListBoxItem(entity me, float i, vector absSize, float float XonoticServerList_keyDown(entity me, float scan, float ascii, float shift) { - float i = me.selectedItem; vector org, sz; org = boxToGlobal(eY * (me.selectedItem * me.itemHeight - me.scrollPos), me.origin, me.size); sz = boxToGlobalSize(eY * me.itemHeight + eX * (1 - me.controlWidth), me.size); - me.lastBumpSelectTime = 0; - if(scan == K_ENTER || scan == K_KP_ENTER) { ServerList_Connect_Click(NULL, me); @@ -1258,7 +1254,7 @@ float XonoticServerList_keyDown(entity me, float scan, float ascii, float shift) { if(me.nItems != 0) { - main.serverInfoDialog.loadServerInfo(main.serverInfoDialog, i); + main.serverInfoDialog.loadServerInfo(main.serverInfoDialog, me.selectedItem); DialogOpenButton_Click_withCoords(me, main.serverInfoDialog, org, sz); return 1; } -- 2.39.2