fix 3.0, 3.1, 3.2, and add cube spawning event, mybe fix s19 crash?

This commit is contained in:
Milxnor
2023-04-26 21:44:16 -04:00
parent 93d18a3fe9
commit be0873d5d7
12 changed files with 166 additions and 20 deletions

View File

@@ -344,12 +344,16 @@ static FORCEINLINE bool IsActorDormant(FNetworkObjectInfo* ActorInfo, const TWea
bool UNetDriver::IsLevelInitializedForActor(const AActor* InActor, const UNetConnection* InConnection) const
{
if (Fortnite_Version >= 2.42) // idk
{
return true;
}
/* #if !(UE_BUILD_SHIPPING || UE_BUILD_TEST)
if (!InActor || !InConnection)
return false;
// check(World == InActor->GetWorld());
#endif */
// return true; // damn
const bool bCorrectWorld = (InConnection->GetClientWorldPackageName() == GetWorldPackage()->NamePrivate && InConnection->ClientHasInitializedLevelFor(InActor));