mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2024-12-31 22:19:44 +01:00
Remove now-unneeded deltaframe fix when going to in-game settings
Previously, before the game loop order got fixed, going to the in-game settings would switch over to the new render function too early, causing a deltaframe glitch that had to be fixed. But now, the render function only gets switched when the current gamestate's function list gets finished executing, so the game won't suddenly switch to titlerender() in the middle of the ACTION press to the in-game settings screen. As a consequence, titleupdatetextcol() no longer needs to be exported to Input.cpp.
This commit is contained in:
parent
c26b701f5b
commit
af70076088
3 changed files with 1 additions and 8 deletions
|
@ -11,7 +11,6 @@
|
|||
#include "MakeAndPlay.h"
|
||||
#include "Map.h"
|
||||
#include "Music.h"
|
||||
#include "RenderFixed.h"
|
||||
#include "Script.h"
|
||||
#include "UtilityClass.h"
|
||||
|
||||
|
@ -2350,10 +2349,6 @@ static void mapmenuactionpress(void)
|
|||
}
|
||||
|
||||
map.nexttowercolour();
|
||||
|
||||
// Fix delta rendering glitch
|
||||
graphics.updatetowerbackground(graphics.titlebg);
|
||||
titleupdatetextcol();
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
#include "Script.h"
|
||||
#include "UtilityClass.h"
|
||||
|
||||
void titleupdatetextcol(void)
|
||||
static inline void titleupdatetextcol(void)
|
||||
{
|
||||
graphics.col_tr = graphics.titlebg.r - (help.glow / 4) - int(fRandom() * 4);
|
||||
graphics.col_tg = graphics.titlebg.g - (help.glow / 4) - int(fRandom() * 4);
|
||||
|
|
|
@ -1,8 +1,6 @@
|
|||
#ifndef RENDERFIXED_H
|
||||
#define RENDERFIXED_H
|
||||
|
||||
void titleupdatetextcol(void);
|
||||
|
||||
void gamerenderfixed(void);
|
||||
|
||||
void titlerenderfixed(void);
|
||||
|
|
Loading…
Reference in a new issue