From 36f728d88e6378c798df4a76a2a8637d2f3c3108 Mon Sep 17 00:00:00 2001 From: Jason Felds Date: Thu, 24 Mar 2011 19:22:11 -0400 Subject: [PATCH] Start of a new branch "warps". Ensure that all warps are forward facing for now. --- src/TimingData.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/TimingData.h b/src/TimingData.h index 655a9087fb..6e9dec85b1 100644 --- a/src/TimingData.h +++ b/src/TimingData.h @@ -328,8 +328,8 @@ struct WarpSegment * @param s the starting row of this segment. * @param r the row to warp to. */ - WarpSegment( int s, int r ): m_iStartRow(max(0, s)), - m_fWarpBeats(max(0, NoteRowToBeat(r))) {} + WarpSegment( int s, int r ): m_iStartRow(max(0, (s < r ? s : r)), + m_fWarpBeats(max(0, NoteRowToBeat((r > s ? r : s)))) {} /** * @brief Creates a Warp Segment with the specified starting row and beat to warp to. * @param s the starting row of this segment.