From: terencehill Date: Tue, 11 Aug 2015 18:34:00 +0000 (+0200) Subject: Rename a variable X-Git-Tag: xonotic-v0.8.1~11^2 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=9b1e1352c72843702742435d6fca81fe1bc693d8;p=xonotic%2Fxonotic-data.pk3dir.git Rename a variable --- diff --git a/qcsrc/menu/item/listbox.qc b/qcsrc/menu/item/listbox.qc index 83a811a4e..e2bc5324b 100644 --- a/qcsrc/menu/item/listbox.qc +++ b/qcsrc/menu/item/listbox.qc @@ -418,11 +418,11 @@ void ListBox_draw(entity me) } if(me.scrollPos != me.scrollPosTarget) { - float exp_factor = 0.16; + float averaging_time = 0.16; if(me.pressed == 1) - exp_factor = 0.06; // scroll faster while dragging the scrollbar + averaging_time = 0.06; // scroll faster while dragging the scrollbar // this formula works with whatever framerate - float f = exp(-frametime / exp_factor); + float f = exp(-frametime / averaging_time); me.scrollPos = me.scrollPos * f + me.scrollPosTarget * (1 - f); if(fabs(me.scrollPos - me.scrollPosTarget) < 0.001) me.scrollPos = me.scrollPosTarget;