Commit 63749d2d authored by Aloshi's avatar Aloshi

Scroll after updating tier so isScrolling() returns accurately.

parent 1aa291eb
......@@ -160,10 +160,11 @@ protected:
mScrollCursorAccumulator += deltaTime;
mScrollTierAccumulator += deltaTime;
int scrollCount = 0;
while(mScrollCursorAccumulator >= SCROLL_SPEED[mScrollTier].scrollDelay)
{
mScrollCursorAccumulator -= SCROLL_SPEED[mScrollTier].scrollDelay;
scroll(mScrollVelocity);
scrollCount++;
}
// are we ready to go even FASTER?
......@@ -172,6 +173,9 @@ protected:
mScrollTierAccumulator -= SCROLL_SPEED[mScrollTier].length;
mScrollTier++;
}
for(int i = 0; i < scrollCount; i++)
scroll(mScrollVelocity);
}
void scroll(int amt)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment