Skip to content

Instantly share code, notes, and snippets.

@dorgonman
Created June 26, 2018 15:43
Show Gist options
  • Save dorgonman/5f021b9eac330493d3f012bfda9a8d99 to your computer and use it in GitHub Desktop.
Save dorgonman/5f021b9eac330493d3f012bfda9a8d99 to your computer and use it in GitHub Desktop.
wordpress_post1561_02.cpp
int32 UNetDriver::ServerReplicateActors_ProcessPrioritizedActors( UNetConnection* Connection, const TArray<FNetViewer>& ConnectionViewers, FActorPriority** PriorityActors, const int32 FinalSortedCount, int32& OutUpdated )
{
...
// If the actor wasn't recently relevant, or if it was torn off, close the actor channel if it exists for this connection
if ( ( !bIsRecentlyRelevant || Actor->bTearOff ) && Channel != NULL )
{
...
UE_LOG( LogNetTraffic, Log, TEXT( "- Closing channel for no longer relevant actor %s" ), *Actor->GetName() );
Channel->Close();
...
}
...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment