From 13c6cebef3fbf0f76af6c2b3f6cecf1fdb5bbab2 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sat, 25 Feb 2017 16:57:46 +0100 Subject: [PATCH] - call WI_updateAnimatedBack only once from WI_Ticker instead of from each single WI_update function. --- src/wi_stuff.cpp | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/src/wi_stuff.cpp b/src/wi_stuff.cpp index 7e7fe4d155..a7f6b8f17c 100644 --- a/src/wi_stuff.cpp +++ b/src/wi_stuff.cpp @@ -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(); }