mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 02:50:32 +00:00
comment
This commit is contained in:
parent
4c1f50119f
commit
afa4d43233
@ -1507,6 +1507,9 @@ static void RebuildObserversCustom(NetworkIdentity identity, bool initialize)
|
||||
// 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.
|
||||
//
|
||||
// note that AOI can NOT only add if Count < maxObservers.
|
||||
// since another player might be closer and needs to be inserted.
|
||||
newObservers.Trim(maxObservers);
|
||||
|
||||
bool changed = false;
|
||||
|
Loading…
Reference in New Issue
Block a user