From 414b7063ed35595a8f1ab0bdc7a1999321a5f29a Mon Sep 17 00:00:00 2001 From: Chris Danford Date: Thu, 12 May 2005 07:52:53 +0000 Subject: [PATCH] Use a small, random amount in fNoteOffset for CPU controlled players so that demonstration show a mix of late and early --- stepmania/src/Player.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/stepmania/src/Player.cpp b/stepmania/src/Player.cpp index 704cbc7da8..5a48d69a88 100644 --- a/stepmania/src/Player.cpp +++ b/stepmania/src/Player.cpp @@ -911,6 +911,10 @@ void Player::HandleStep( int col, const RageTimer &tm, bool bHeld ) if( score == TNS_MISS ) return; + // Put some small, random amount in fNoteOffset so that demonstration + // show a mix of late and early instead of always late. + fNoteOffset = randomf( -0.1f, 0.1f ); + break; default: