]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Small cleanup
authorterencehill <piuntn@gmail.com>
Sat, 25 Jul 2015 13:45:45 +0000 (15:45 +0200)
committerterencehill <piuntn@gmail.com>
Sat, 25 Jul 2015 13:45:45 +0000 (15:45 +0200)
qcsrc/menu/xonotic/screenshotlist.qc

index d6fcaf86e3d0d97b0494e823ac311df0fb2183af..0b3d473e96933c550f25fc99c0eb0093e95c1b88 100644 (file)
@@ -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