From a5de2609effbc328e7b04e19ca3b63593e0cf4c1 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Mon, 19 Dec 2005 01:33:14 +0000 Subject: [PATCH] A combo that's rolled over (continued) from the previous stage starts at the beginning of the song, not from the first step. --- stepmania/src/PlayerStageStats.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/stepmania/src/PlayerStageStats.cpp b/stepmania/src/PlayerStageStats.cpp index f1efda30ca..f494696532 100644 --- a/stepmania/src/PlayerStageStats.cpp +++ b/stepmania/src/PlayerStageStats.cpp @@ -416,10 +416,11 @@ void PlayerStageStats::UpdateComboList( float fSecond, bool bRollover ) } Combo_t &combo = ComboList.back(); + if( !bRollover && combo.fStartSecond == -9999 ) + combo.fStartSecond = 0; + combo.fSizeSeconds = fSecond - combo.fStartSecond; combo.cnt = cnt; - if( !bRollover && combo.fStartSecond == -9999 ) - combo.fStartSecond = fSecond; if( bRollover ) combo.rollover = cnt;