]> git.localhorst.tv Git - l2e.git/blobdiff - src/battle/states/VictoryState.cpp
stop lines in victory state from crossing the frame
[l2e.git] / 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;
                        }
                }
        }