This commit is contained in:
vis2k 2022-04-29 18:53:14 +08:00
parent 4c1f50119f
commit afa4d43233

View File

@ -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;