r3284 - trunk/data/qcsrc/menu/nexuiz
DONOTREPLY at icculus.org
DONOTREPLY at icculus.org
Sat Jan 26 07:25:01 EST 2008
Author: div0
Date: 2008-01-26 07:25:01 -0500 (Sat, 26 Jan 2008)
New Revision: 3284
Modified:
trunk/data/qcsrc/menu/nexuiz/credits.c
Log:
fix long searched bug with credits not scrolling up
Modified: trunk/data/qcsrc/menu/nexuiz/credits.c
===================================================================
--- trunk/data/qcsrc/menu/nexuiz/credits.c 2008-01-26 12:21:31 UTC (rev 3283)
+++ trunk/data/qcsrc/menu/nexuiz/credits.c 2008-01-26 12:25:01 UTC (rev 3284)
@@ -33,9 +33,9 @@
void drawNexuizCreditsList(entity me)
{
float i;
- if(me.scrolling && time > me.scrolling)
+ if(me.scrolling)
{
- me.scrollPos = min(me.scrollPos + frametime * me.itemHeight, me.nItems * me.itemHeight - 1);
+ me.scrollPos = bound(0, (time - me.scrolling) * me.itemHeight, me.nItems * me.itemHeight - 1);
i = min(me.selectedItem, floor((me.scrollPos + 1) / me.itemHeight - 1));
i = max(i, ceil(me.scrollPos / me.itemHeight));
me.setSelected(me, i);
More information about the nexuiz-commits
mailing list