- call WI_updateAnimatedBack only once from WI_Ticker instead of from each single WI_update function.

This commit is contained in:
Christoph Oelckers 2017-02-25 16:57:46 +01:00
parent d39ee1daf3
commit 13c6cebef3

View file

@ -1090,8 +1090,6 @@ public:
void WI_updateNoState ()
{
WI_updateAnimatedBack();
if (acceleratestage)
{
cnt = 0;
@ -1140,8 +1138,6 @@ public:
void WI_updateShowNextLoc ()
{
WI_updateAnimatedBack();
if (!--cnt || acceleratestage)
WI_initNoState();
else
@ -1239,8 +1235,6 @@ public:
bool stillticking;
bool autoskip = WI_autoSkip();
WI_updateAnimatedBack();
if ((acceleratestage || autoskip) && ng_state != 6)
{
acceleratestage = 0;
@ -1491,8 +1485,6 @@ public:
bool stillticking;
bool autoskip = WI_autoSkip();
WI_updateAnimatedBack ();
if ((acceleratestage || autoskip) && ng_state != 10)
{
acceleratestage = 0;
@ -1786,8 +1778,6 @@ public:
void WI_updateStats ()
{
WI_updateAnimatedBack ();
if (acceleratestage && sp_state != 10)
{
acceleratestage = 0;
@ -2165,6 +2155,7 @@ static FIntermissionScreen WI_Screen;
void WI_Ticker()
{
WI_Screen.WI_updateAnimatedBack();
WI_Screen.WI_Ticker();
}