Compare commits

..

3 Commits

2 changed files with 19 additions and 20 deletions

View File

@ -448,7 +448,7 @@ FGuid UDTFluxCoreSubsystem::InitSplitRankingsDisplay(const int ContestId, const
this->OnSplitRankingDisplayReady.Broadcast(InReq.RequestId, false); this->OnSplitRankingDisplayReady.Broadcast(InReq.RequestId, false);
}); });
FGuid DisplayRequestId = NetworkSubsystem->SendTrackedRequestWithCallbacks( FGuid DisplayRequestId = NetworkSubsystem->SendTrackedRequestWithCallbacks(
EDTFluxApiDataType::ContestRanking, ContestId, StageId, SplitId, OnSuccess, OnError, true); EDTFluxApiDataType::SplitRanking, ContestId, StageId, SplitId, OnSuccess, OnError, true);
return DisplayRequestId; return DisplayRequestId;
} }
UE_LOG(logDTFluxCoreSubsystem, Error, TEXT("DTFluxDatastorage unavailable ...")); UE_LOG(logDTFluxCoreSubsystem, Error, TEXT("DTFluxDatastorage unavailable ..."));

View File

@ -10,7 +10,7 @@ FText UFTDFluxUtils::GetFormatedName(const int& Bib, const int MaxChar, const FS
const FString OverFlowChar) const FString OverFlowChar)
{ {
UDTFluxCoreSubsystem* CoreSubsystem = GEngine->GetEngineSubsystem<UDTFluxCoreSubsystem>(); UDTFluxCoreSubsystem* CoreSubsystem = GEngine->GetEngineSubsystem<UDTFluxCoreSubsystem>();
if (CoreSubsystem == nullptr) if (CoreSubsystem != nullptr)
{ {
FDTFluxParticipant OutParticipant; FDTFluxParticipant OutParticipant;
CoreSubsystem->GetParticipant(Bib, OutParticipant); CoreSubsystem->GetParticipant(Bib, OutParticipant);
@ -31,14 +31,13 @@ void UFTDFluxUtils::GetFullName(const int Bib, FText& OutFullName)
{ {
OutFullName = FText(); OutFullName = FText();
UDTFluxCoreSubsystem* CoreSubsystem = GEngine->GetEngineSubsystem<UDTFluxCoreSubsystem>(); UDTFluxCoreSubsystem* CoreSubsystem = GEngine->GetEngineSubsystem<UDTFluxCoreSubsystem>();
FDTFluxParticipant Participant; if(CoreSubsystem != nullptr)
CoreSubsystem->GetParticipant(Bib, Participant);
{ {
FDTFluxParticipant OutParticipant; FDTFluxParticipant Participant;
if(CoreSubsystem->GetParticipant(Bib, OutParticipant)) if(CoreSubsystem->GetParticipant(Bib, Participant))
{ {
FString FormattedName = ""; FString FormattedName = "";
if (OutParticipant.IsTeam()) if (Participant.IsTeam())
{ {
OutFullName = FText::FromString(Participant.Team); OutFullName = FText::FromString(Participant.Team);
return; return;