Skip to content

Commit 24a6df1

Browse files
removed setting disconnect reason to UserRequested on clients entering post-game (#626)
1 parent 5794193 commit 24a6df1

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

Assets/BossRoom/Scripts/Client/Game/State/ClientPostGameState.cs

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -10,19 +10,6 @@ public class ClientPostGameState : GameStateBehaviour
1010
{
1111
public override GameState ActiveState { get { return GameState.PostGame; } }
1212

13-
protected override void Start()
14-
{
15-
base.Start();
16-
17-
//it is common for the user to get dumped back to main menu from here (i.e., if the host decides not to play again), and
18-
//it is a little funny to display a "Connection to Host Lost" message in that case. The best thing would probably be to
19-
//display a "Host Abandoned the Game" message, but this would require some more plumbing (an RPC from the host before it quit,
20-
//containing that information).
21-
//In the meantime, we just set "UserRequested" to suppress the Disconnected error popup.
22-
var portalGO = GameObject.FindGameObjectWithTag("GameNetPortal");
23-
portalGO.GetComponent<ClientGameNetPortal>().DisconnectReason.SetDisconnectReason(ConnectStatus.UserRequestedDisconnect);
24-
}
25-
2613
public override void OnNetworkSpawn()
2714
{
2815
if (!IsClient)

0 commit comments

Comments
 (0)