From: Daniel Karbach Date: Wed, 13 Feb 2013 18:41:49 +0000 (+0100) Subject: stop lines in victory state from crossing the frame X-Git-Url: http://git.localhorst.tv/?p=l2e.git;a=commitdiff_plain;h=e8283bf94624b2f184d50dc1401bf45225c529d6 stop lines in victory state from crossing the frame --- diff --git a/src/battle/states/VictoryState.cpp b/src/battle/states/VictoryState.cpp index 831f08e..a0b09ce 100644 --- a/src/battle/states/VictoryState.cpp +++ b/src/battle/states/VictoryState.cpp @@ -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; } } }