]> git.localhorst.tv Git - l2e.git/commitdiff
added 500ms blackness between map transitions
authorDaniel Karbach <daniel.karbach@localhorst.tv>
Mon, 8 Oct 2012 20:08:16 +0000 (22:08 +0200)
committerDaniel Karbach <daniel.karbach@localhorst.tv>
Mon, 8 Oct 2012 20:08:16 +0000 (22:08 +0200)
dunno if that's the right amount, but should be something along those lines

src/map/MapState.cpp

index 64c254786559bb2fce4958005c1dde5de85d8bd9..ce14c2905982e04efcdce3c9edee11534b4a0931 100644 (file)
@@ -242,7 +242,9 @@ void MapState::CheckTrigger() {
                if (trigger->map) {
                        ctrl->PushState(new ColorFade(this, 0, 500, true));
                        ctrl->PushState(new TransitionState(this, trigger->map, trigger->target));
-                       ctrl->PushState(new ColorFade(this, 0, 500, false));
+                       ColorFade *fadeOut(new ColorFade(this, 0, 500, false));
+                       fadeOut->SetLeadOutTime(500);
+                       ctrl->PushState(fadeOut);
                }
        }