]> git.localhorst.tv Git - l2e.git/blobdiff - src/graphics/ColorFade.cpp
fade out after victory
[l2e.git] / src / graphics / ColorFade.cpp
index 72bf40978791cfb1d0bad8143eda8d241fc98506..55e14fc811d87e2427a4ef0443259a3da996d1da 100644 (file)
@@ -18,7 +18,8 @@ ColorFade::ColorFade(State *slave, Uint32 color, int duration, bool in, bool int
 , leadInDone(true)
 , fadeDone(false)
 , in(in)
-, interactive(interactive) {
+, interactive(interactive)
+, doublePop(false) {
 
 }
 
@@ -86,9 +87,15 @@ void ColorFade::HandleEvents(const Input &input) {
                                timer = GraphicsTimers().StartCountdown(leadOut);
                        } else {
                                Ctrl().PopState();
+                               if (doublePop) {
+                                       Ctrl().PopState();
+                               }
                        }
                } else {
                        Ctrl().PopState();
+                       if (doublePop) {
+                               Ctrl().PopState();
+                       }
                }
        }
 }