From a739e45e3f83be15b4a0223c794bfb877f57d48a Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Thu, 15 Apr 2004 23:22:32 +0000 Subject: [PATCH] fix potential tweening overflow --- stepmania/src/BGAnimationLayer.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/stepmania/src/BGAnimationLayer.cpp b/stepmania/src/BGAnimationLayer.cpp index 52f87f6571..9f511f9e5a 100644 --- a/stepmania/src/BGAnimationLayer.cpp +++ b/stepmania/src/BGAnimationLayer.cpp @@ -932,6 +932,9 @@ void BGAnimationLayer::Update( float fDeltaTime ) { PlayCommand( "On" ); m_fSecondsUntilNextCommand += m_fRepeatCommandEverySeconds; + + /* In case we delayed a long time, don't queue two repeats at once. */ + wrap( m_fSecondsUntilNextCommand, m_fRepeatCommandEverySeconds ); } } }