mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 02:50:32 +00:00
Revert "Call OnClientSceneChanged for host client"
This reverts commit 6f5c651493
.
This commit is contained in:
parent
6f5c651493
commit
64db341662
@ -811,13 +811,10 @@ internal void ClientChangeScene(string newSceneName, SceneOperation sceneOperati
|
||||
OnClientChangeScene(newSceneName, sceneOperation, customHandling);
|
||||
|
||||
// After calling OnClientChangeScene, exit if server since server is already doing
|
||||
// the actual scene change, and we don't need to do it for the host client.
|
||||
// Host client still needs OnClientSceneChanged called because it's virtual and may be overridden.
|
||||
// the actual scene change, and we don't need to do it for the host client
|
||||
if (NetworkServer.active)
|
||||
{
|
||||
OnClientSceneChanged(NetworkClient.connection);
|
||||
return;
|
||||
}
|
||||
|
||||
// set client flag to stop processing messages while loading scenes.
|
||||
// otherwise we would process messages and then lose all the state
|
||||
// as soon as the load is finishing, causing all kinds of bugs
|
||||
|
Loading…
Reference in New Issue
Block a user