From d74a75b439188bb89cddcdbabb05ddecd422a92d Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Thu, 16 Jan 2003 23:40:42 +0000 Subject: [PATCH] We already have a tweening mechanism; use it ... --- stepmania/src/BGAnimationLayer.cpp | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/stepmania/src/BGAnimationLayer.cpp b/stepmania/src/BGAnimationLayer.cpp index cf51d5e009..17347974cc 100644 --- a/stepmania/src/BGAnimationLayer.cpp +++ b/stepmania/src/BGAnimationLayer.cpp @@ -55,20 +55,19 @@ BGAnimationLayer::BGAnimationLayer() m_bCycleAlpha = false; m_Effect = EFFECT_STRETCH_STILL; - m_PosX = 0; - m_PosY = 0; + /* Why doesn't this use the existing tweening mechanism? I can't make + * sense of what this code is doing; all I can tell is that it's duplicating + * stuff we already have. -glenn */ + m_PosX = m_PosY = 0; m_Zoom = 0; m_Rot = 0; m_ShowTime = 0; m_HideTime = 0; m_TweenStartTime = 0; - m_TweenX = 0.0; - m_TweenY = 0.0; + m_TweenX = m_TweenY = 0.0; m_TweenSpeed = 0; m_TweenState = 0; - m_TweenPassedX = 0; - m_TweenPassedY = 0; - + m_TweenPassedX = m_TweenPassedY = 0; } /* Static background layers are simple, uncomposited background images with nothing