mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-28 15:02:01 +00:00
- call WI_updateAnimatedBack only once from WI_Ticker instead of from each single WI_update function.
This commit is contained in:
parent
d39ee1daf3
commit
13c6cebef3
1 changed files with 1 additions and 10 deletions
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue