mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 11:00:32 +00:00
NetworkIdentity.RebuildObservers: result renamed to rebuildOverwritten because that's what it's for
This commit is contained in:
parent
6eedd2405c
commit
d6a93275f9
@ -1002,7 +1002,7 @@ public void RebuildObservers(bool initialize)
|
||||
bool changed = false;
|
||||
|
||||
// call OnRebuildObservers function in all components
|
||||
bool result = GetNewObservers(newObservers, initialize);
|
||||
bool rebuildOverwritten = GetNewObservers(newObservers, initialize);
|
||||
|
||||
// if player connection: ensure player always see himself no matter what.
|
||||
// -> fixes https://github.com/vis2k/Mirror/issues/692 where a
|
||||
@ -1015,7 +1015,7 @@ public void RebuildObservers(bool initialize)
|
||||
|
||||
// if no component implemented OnRebuildObservers, then add all
|
||||
// connections.
|
||||
if (!result)
|
||||
if (!rebuildOverwritten)
|
||||
{
|
||||
if (initialize)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user