fix tweening

This commit is contained in:
Glenn Maynard
2003-03-28 02:15:29 +00:00
parent b797c11a2d
commit 21c4f840c7
+1 -1
View File
@@ -140,8 +140,8 @@ void CourseContentsList::TweenInAfterChangedCourse()
{ {
CourseEntryDisplay& display = m_CourseContentDisplays[i]; CourseEntryDisplay& display = m_CourseContentDisplays[i];
display.SetXY( 0, -((MAX_VISIBLE_CONTENTS-1)/2) * float(ContentsBarHeight) );
display.StopTweening(); display.StopTweening();
display.SetXY( 0, -((MAX_VISIBLE_CONTENTS-1)/2) * float(ContentsBarHeight) );
display.BeginTweening( i*0.1f ); display.BeginTweening( i*0.1f );
display.SetTweenY( (-(MAX_VISIBLE_CONTENTS-1)/2 + i) * float(ContentsBarHeight) ); display.SetTweenY( (-(MAX_VISIBLE_CONTENTS-1)/2 + i) * float(ContentsBarHeight) );
} }