NetworkIdentity.RebuildObservers: result renamed to rebuildOverwritten because that's what it's for

This commit is contained in:
vis2k 2020-03-03 23:22:49 +01:00
parent 6eedd2405c
commit d6a93275f9

View File

@ -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)
{