From 613356a6d07936742edfb13a1b2070a118668732 Mon Sep 17 00:00:00 2001 From: Paul Pacheco Date: Mon, 23 Mar 2020 10:29:45 -0500 Subject: [PATCH] fix smell, call parameter the same as base method --- Assets/Mirror/Components/NetworkRoomManager.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Assets/Mirror/Components/NetworkRoomManager.cs b/Assets/Mirror/Components/NetworkRoomManager.cs index 9c5afd642..893bdecd9 100644 --- a/Assets/Mirror/Components/NetworkRoomManager.cs +++ b/Assets/Mirror/Components/NetworkRoomManager.cs @@ -310,10 +310,10 @@ public void RecalculateRoomPlayerIndices() /// This causes the server to switch scenes and sets the networkSceneName. /// Clients that connect to this server will automatically switch to this scene. This is called autmatically if onlineScene or offlineScene are set, but it can be called from user code to switch scenes again while the game is in progress. This automatically sets clients to be not-ready. The clients must call NetworkClient.Ready() again to participate in the new scene. /// - /// - public override void ServerChangeScene(string sceneName) + /// + public override void ServerChangeScene(string newSceneName) { - if (sceneName == RoomScene) + if (newSceneName == RoomScene) { foreach (NetworkRoomPlayer roomPlayer in roomSlots) { @@ -337,7 +337,7 @@ public override void ServerChangeScene(string sceneName) allPlayersReady = false; } - base.ServerChangeScene(sceneName); + base.ServerChangeScene(newSceneName); } ///