work on 21.00

This commit is contained in:
Gray
2024-03-17 20:48:21 -04:00
parent a9e2cc648a
commit acb311c643
13 changed files with 198 additions and 14 deletions

View File

@@ -78,13 +78,20 @@ void UWorld::Listen()
*(UNetDriver**)(__int64(LevelCollections.AtPtr(1, LevelCollectionSize)) + 0x10) = NewNetDriver;
FString Error;
LOG_INFO(LogNet, "Calling InitListen!");
if (!NewNetDriver->InitListen(GetWorld(), URL, false, Error))
AWorldSettings* WorldSettings = GetWorldSettings();
const bool bReuseAddressAndPort = false; // WorldSettings ? WorldSettings->bReuseAddressAndPort : false;
if (!NewNetDriver->InitListen(GetWorld(), URL, bReuseAddressAndPort, Error))
{
LOG_ERROR(LogNet, "Failed to init listen!");
return;
}
LOG_INFO(LogNet, "Called InitListen!");
const bool bLanSpeed = false;
if (!bLanSpeed && (NewNetDriver->GetMaxInternetClientRate() < NewNetDriver->GetMaxClientRate()) && (NewNetDriver->GetMaxInternetClientRate() > 2500))