mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 02:50:32 +00:00
NetworkServer: trim newObservers
This commit is contained in:
parent
590c26d807
commit
4c1f50119f
@ -1504,8 +1504,10 @@ static void RebuildObserversCustom(NetworkIdentity identity, bool initialize)
|
||||
newObservers.Add(identity.connectionToClient);
|
||||
}
|
||||
|
||||
// TODO cap
|
||||
|
||||
// cap to maxObservers before handling added/removed.
|
||||
// this is 100% safe and allows us to limit local world size
|
||||
// without worrying about observers+fitted observers for Rpcs etc.
|
||||
newObservers.Trim(maxObservers);
|
||||
|
||||
bool changed = false;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user