Fix startup credits packaging warning
This commit is contained in:
@@ -147,19 +147,19 @@ void UAgrarianDemoNoticeWidget::DrawCinematicCredits(
|
|||||||
const float ExitSeconds = 0.48f;
|
const float ExitSeconds = 0.48f;
|
||||||
const float GapSeconds = 0.16f;
|
const float GapSeconds = 0.16f;
|
||||||
|
|
||||||
float Cursor = IntroDelay;
|
float TimelineCursor = IntroDelay;
|
||||||
int32 ActiveIndex = INDEX_NONE;
|
int32 ActiveIndex = INDEX_NONE;
|
||||||
float LocalTime = 0.0f;
|
float LocalTime = 0.0f;
|
||||||
for (int32 Index = 0; Index < UE_ARRAY_COUNT(CreditCards); ++Index)
|
for (int32 Index = 0; Index < UE_ARRAY_COUNT(CreditCards); ++Index)
|
||||||
{
|
{
|
||||||
const float CardDuration = SlamSeconds + CreditCards[Index].HoldSeconds + ExitSeconds + GapSeconds;
|
const float CardDuration = SlamSeconds + CreditCards[Index].HoldSeconds + ExitSeconds + GapSeconds;
|
||||||
if (Elapsed >= Cursor && Elapsed < Cursor + CardDuration)
|
if (Elapsed >= TimelineCursor && Elapsed < TimelineCursor + CardDuration)
|
||||||
{
|
{
|
||||||
ActiveIndex = Index;
|
ActiveIndex = Index;
|
||||||
LocalTime = Elapsed - Cursor;
|
LocalTime = Elapsed - TimelineCursor;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
Cursor += CardDuration;
|
TimelineCursor += CardDuration;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ActiveIndex == INDEX_NONE)
|
if (ActiveIndex == INDEX_NONE)
|
||||||
|
|||||||
Reference in New Issue
Block a user