From: terencehill Date: Sat, 25 Jul 2015 13:45:45 +0000 (+0200) Subject: Small cleanup X-Git-Tag: xonotic-v0.8.1~11^2~12 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=48be2c7ef0754b38f7ac1f68c79bc41ece940fef;p=xonotic%2Fxonotic-data.pk3dir.git Small cleanup --- diff --git a/qcsrc/menu/xonotic/screenshotlist.qc b/qcsrc/menu/xonotic/screenshotlist.qc index d6fcaf86e..0b3d473e9 100644 --- a/qcsrc/menu/xonotic/screenshotlist.qc +++ b/qcsrc/menu/xonotic/screenshotlist.qc @@ -29,7 +29,6 @@ CLASS(XonoticScreenshotList, XonoticListBox) ATTRIB(XonoticScreenshotList, newScreenshotTime, float, 0) ATTRIB(XonoticScreenshotList, newSlideShowScreenshotTime, float, 0) - ATTRIB(XonoticScreenshotList, prevSelectedItem, float, 0) ATTRIB(XonoticScreenshotList, screenshotBrowserDialog, entity, NULL) ATTRIB(XonoticScreenshotList, screenshotPreview, entity, NULL) @@ -152,9 +151,9 @@ void XonoticScreenshotList_setSelected(entity me, float i) { if (me.newSlideShowScreenshotTime) me.startSlideShow(me); - me.prevSelectedItem = me.selectedItem; + float selectedItem_save = me.selectedItem; SUPER(XonoticScreenshotList).setSelected(me, i); - if (me.pressed && me.selectedItem != me.prevSelectedItem) + if (me.pressed && me.selectedItem != selectedItem_save) { // while dragging the scrollbar (or an item) // for a smooth mouse movement do not load immediately the new selected images