Changes to maketic/menu/console updates

- Console and Menu will now update cleanly during stalls.
- Moved net adaption so uncapped framerate will always use it.
This commit is contained in:
Edward Richardson 2014-07-14 22:26:40 +12:00
commit f99a84b498
2 changed files with 62 additions and 56 deletions

View file

@ -641,12 +641,14 @@ void C_NewModeAdjust ()
C_AdjustBottom ();
}
int consoletic = 0;
void C_Ticker ()
{
static int lasttic = 0;
consoletic++;
if (lasttic == 0)
lasttic = gametic - 1;
lasttic = consoletic - 1;
if (con_buffersize > 0)
{
@ -657,7 +659,7 @@ void C_Ticker ()
{
if (ConsoleState == c_falling)
{
ConBottom += (gametic - lasttic) * (SCREENHEIGHT*2/25);
ConBottom += (consoletic - lasttic) * (SCREENHEIGHT * 2 / 25);
if (ConBottom >= SCREENHEIGHT / 2)
{
ConBottom = SCREENHEIGHT / 2;
@ -666,7 +668,7 @@ void C_Ticker ()
}
else if (ConsoleState == c_rising)
{
ConBottom -= (gametic - lasttic) * (SCREENHEIGHT*2/25);
ConBottom -= (consoletic - lasttic) * (SCREENHEIGHT * 2 / 25);
if (ConBottom <= 0)
{
ConsoleState = c_up;
@ -681,7 +683,7 @@ void C_Ticker ()
CursorTicker = C_BLINKRATE;
}
lasttic = gametic;
lasttic = consoletic;
if (NotifyTopGoal > NotifyTop)
{