You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
[FNE]
#jira: FORT-641244 Fixing issue caused when players try to join a game after leaving, but the party doesn't fit on the team. [CL 27842258 by aidan mcdu in ue5-main branch]
This commit is contained in:
@@ -667,7 +667,7 @@ EPartyReservationResult::Type APartyBeaconHost::AddPartyReservation(const FParty
|
||||
|
||||
if (bContinue)
|
||||
{
|
||||
if (State->AreTeamsAvailable(ReservationRequest))
|
||||
if (!ShouldRespectCompetitiveIntegrity() || State->AreTeamsAvailable(ReservationRequest))
|
||||
{
|
||||
if (State->CrossPlayAllowed(ReservationRequest))
|
||||
{
|
||||
|
||||
@@ -629,7 +629,11 @@ bool UPartyBeaconState::CrossPlayAllowed(const FPartyReservation& ReservationReq
|
||||
bool UPartyBeaconState::DoesReservationFit(const FPartyReservation& ReservationRequest) const
|
||||
{
|
||||
const int32 IncomingPartySize = ReservationRequest.PartyMembers.Num();
|
||||
const bool bPartySizeOk = (IncomingPartySize > 0) && (IncomingPartySize <= NumPlayersPerTeam);
|
||||
bool bPartySizeOk = true;
|
||||
if (bRespectCompetitiveIntegrity)
|
||||
{
|
||||
bPartySizeOk = (IncomingPartySize > 0) && (IncomingPartySize <= NumPlayersPerTeam);
|
||||
}
|
||||
const bool bRoomForReservation = (NumConsumedReservations + IncomingPartySize ) <= MaxReservations;
|
||||
|
||||
UE_LOG(LogPartyBeacon, Verbose, TEXT("UPartyBeaconState::DoesReservationFit: Incoming Party Size: %d Num Players Per Team: %d NumConsumedReservations: %d MaxReservations: %d"), IncomingPartySize, NumPlayersPerTeam, NumConsumedReservations, MaxReservations);
|
||||
|
||||
Reference in New Issue
Block a user