fix some versions crashing on join, fix s16 mcp, editing, and zone, fix some bug with restarting, performance
This commit is contained in:
Milxnor
2023-04-28 08:07:30 -04:00
parent 4c19144b0f
commit 9f0990a696
8 changed files with 107 additions and 102 deletions

View File

@@ -21,7 +21,7 @@ void UWorld::Listen()
constexpr bool bUseBeacons = true;
int Port = 7777 - AmountOfRestarts;
int Port = 7777 - Globals::AmountOfListens + 1;
if (bUseBeacons)
{
@@ -79,7 +79,7 @@ void UWorld::Listen()
*(UNetDriver**)(__int64(LevelCollections.AtPtr(0, LevelCollectionSize)) + 0x10) = NewNetDriver;
*(UNetDriver**)(__int64(LevelCollections.AtPtr(1, LevelCollectionSize)) + 0x10) = NewNetDriver;
LOG_INFO(LogNet, "Listening on port {}!", Port + AmountOfRestarts);
LOG_INFO(LogNet, "Listening on port {}!", Port + Globals::AmountOfListens - 1);
}
AWorldSettings* UWorld::GetWorldSettings(const bool bCheckStreamingPersistent, const bool bChecked) const