From: terencehill Date: Sat, 28 Nov 2015 16:16:16 +0000 (+0100) Subject: Speed up menu start by avoiding an unnecessary showNotify call when building up the... X-Git-Tag: xonotic-v0.8.2~1286^2~10 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=ac2890a8364dbb6c969827e64fca1659ebac7536;p=xonotic%2Fxonotic-data.pk3dir.git Speed up menu start by avoiding an unnecessary showNotify call when building up the menu that reloads another time lists of filenames (demos, screenshots and music tracks) and player models --- diff --git a/qcsrc/menu/item/container.qc b/qcsrc/menu/item/container.qc index 23857dcea..17412cd0f 100644 --- a/qcsrc/menu/item/container.qc +++ b/qcsrc/menu/item/container.qc @@ -302,7 +302,10 @@ other.parent = me; other.Container_origin = theOrigin; other.Container_size = theSize; - me.setAlphaOf(me, other, theAlpha); + + // don't call setAlphaOf, it would uneccessarily trigger showNotify + //me.setAlphaOf(me, other, theAlpha); + other.Container_alpha = theAlpha; entity l; l = me.lastChild;