]> git.localhorst.tv Git - l2e.git/commitdiff
stop lines in victory state from crossing the frame
authorDaniel Karbach <daniel.karbach@localhorst.tv>
Wed, 13 Feb 2013 18:41:49 +0000 (19:41 +0100)
committerDaniel Karbach <daniel.karbach@localhorst.tv>
Wed, 13 Feb 2013 18:44:16 +0000 (19:44 +0100)
src/battle/states/VictoryState.cpp

index 831f08eef002b268f50c6c831ce235fa926195cc..a0b09ceb5b93d7996c71317f88765b80cce45bad 100644 (file)
@@ -159,13 +159,12 @@ void VictoryState::RenderLines(SDL_Surface *screen) {
 
        if (start > 0) {
                if (timer.Running() && !stalling) {
+                       --end;
                        position += lineBreak;
                        const int correction = timer.IterationElapsed();
                        if (correction > 0) {
                //              ++start;
                                position.Y() -= lineBreak.Y() * correction / timer.TargetTime();
-                       } else {
-                               --end;
                        }
                }
        }