diff --git a/Source/AgrarianGame/AgrarianDemoNoticeWidget.cpp b/Source/AgrarianGame/AgrarianDemoNoticeWidget.cpp index 9972d1b..e4d6199 100644 --- a/Source/AgrarianGame/AgrarianDemoNoticeWidget.cpp +++ b/Source/AgrarianGame/AgrarianDemoNoticeWidget.cpp @@ -147,19 +147,19 @@ void UAgrarianDemoNoticeWidget::DrawCinematicCredits( const float ExitSeconds = 0.48f; const float GapSeconds = 0.16f; - float Cursor = IntroDelay; + float TimelineCursor = IntroDelay; int32 ActiveIndex = INDEX_NONE; float LocalTime = 0.0f; for (int32 Index = 0; Index < UE_ARRAY_COUNT(CreditCards); ++Index) { const float CardDuration = SlamSeconds + CreditCards[Index].HoldSeconds + ExitSeconds + GapSeconds; - if (Elapsed >= Cursor && Elapsed < Cursor + CardDuration) + if (Elapsed >= TimelineCursor && Elapsed < TimelineCursor + CardDuration) { ActiveIndex = Index; - LocalTime = Elapsed - Cursor; + LocalTime = Elapsed - TimelineCursor; break; } - Cursor += CardDuration; + TimelineCursor += CardDuration; } if (ActiveIndex == INDEX_NONE)