Dont mess with the dead

This commit is contained in:
Gray
2024-03-24 21:51:54 -04:00
parent 68ae6d81cb
commit 34b797c083
11 changed files with 45 additions and 16 deletions

View File

@@ -456,6 +456,7 @@ bool UNetDriver::IsLevelInitializedForActor(const AActor* InActor, const UNetCon
const bool bCorrectWorld = (bFirstWorldCheck && InConnection->ClientHasInitializedLevelFor(InActor));
const bool bIsConnectionPC = (InActor == InConnection->GetPlayerController());
// LOG_INFO(LogDev, "Finished call {}", bCorrectWorld || bIsConnectionPC);
return bCorrectWorld || bIsConnectionPC;
}
@@ -759,10 +760,8 @@ int32 UNetDriver::ServerReplicateActors()
if (!Channel)
{
// if (!IsLevelInitializedForActor(Actor, Connection))
if (!bLevelInitializedForActor)
{
// If the level this actor belongs to isn't loaded on client, don't bother sending
continue;
}