Skip to content
Snippets Groups Projects
Commit 0a5d33ad authored by Jonathan Ehret's avatar Jonathan Ehret
Browse files

show map loading in status when appropriate

parent 782378ee
No related branches found
No related tags found
No related merge requests found
......@@ -49,15 +49,16 @@ void USFFadeHandler::Tick()
case EFadeState::FadingOut:
if(!NewLevelName.IsEmpty())
{
FSFLoggingUtils::Log("[USFFadeHandler::Tick()]: Opening Level now", false);
FSFLoggingUtils::Log("[USFFadeHandler::Tick()]: Opening Map now", false);
UGameplayStatics::OpenLevel(GameInstance->GetWorld(), *NewLevelName, false);
SetTimerForNextTick();
FadeState = EFadeState::WaitForLevelLoaded;
GameInstance->UpdateHUD("Loading Map");
}
else if(USFGameInstance::Get()->HasEnded())
else if(GameInstance->HasEnded())
{
//we quit the game
UKismetSystemLibrary::QuitGame(USFGameInstance::Get()->GetWorld(), nullptr, EQuitPreference::Quit, false);
UKismetSystemLibrary::QuitGame(GameInstance->GetWorld(), nullptr, EQuitPreference::Quit, false);
}
//else just do nothing so we stay faded out NewLevelName=="" is the case for a simple FadeOut()
break;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment