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