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

minor bugfix for starting unrelated maps

parent 3212cb57
No related branches found
No related tags found
No related merge requests found
......@@ -783,13 +783,14 @@ void USFGameInstance::OnLevelLoaded()
void USFGameInstance::OnFadedIn()
{
FString NumberStr = FString::FromInt(GetCurrentConditionsSequenceNumber()) + "/" + FString::FromInt(Participant->GetAllConditions().Num());
if (Participant && Participant->GetCurrentCondition())
{
//this should be logged first
if (bInDebugMode) {
USFLoggingBPLibrary::LogComment("Running in DEBUG MODE");
}
FString NumberStr = FString::FromInt(GetCurrentConditionsSequenceNumber()) + "/" + FString::FromInt(Participant->GetAllConditions().Num());
USFLoggingBPLibrary::LogComment("Start Condition " + NumberStr + ": " + Participant->GetCurrentCondition()->GetPrettyName());
}
......@@ -802,7 +803,7 @@ void USFGameInstance::OnFadedIn()
Participant->GetCurrentCondition()->Begin();
UpdateHUD("Condition " + NumberStr);
UpdateHUD("Condition " + FString::FromInt(GetCurrentConditionsSequenceNumber()) + "/" + FString::FromInt(Participant->GetAllConditions().Num()));
}
USFParticipant* USFGameInstance::GetParticipant() const
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment