diff --git a/Intersect.Client.Core/MonoGame/Network/MonoSocket.cs b/Intersect.Client.Core/MonoGame/Network/MonoSocket.cs index 5edc7eefba..635eda40bd 100644 --- a/Intersect.Client.Core/MonoGame/Network/MonoSocket.cs +++ b/Intersect.Client.Core/MonoGame/Network/MonoSocket.cs @@ -251,7 +251,7 @@ public override void Update() ); } - if (MainMenu.LastNetworkStatusChangeTime + ServerStatusPingInterval * 1.5f < now) + if (MainMenu.LastNetworkStatusChangeTime + (int)(ServerStatusPingInterval * 1.5f) < now) { MainMenu.SetNetworkStatus(NetworkStatus.Offline); } diff --git a/Intersect.Client.Core/Networking/Network.cs b/Intersect.Client.Core/Networking/Network.cs index 0e8dd3baf6..c1c16a02a5 100644 --- a/Intersect.Client.Core/Networking/Network.cs +++ b/Intersect.Client.Core/Networking/Network.cs @@ -99,7 +99,6 @@ public static bool InterruptDisconnectsIfConnected() private static void OnConnected(INetworkLayerInterface sender, ConnectionEventArgs connectionEventArgs) { - Globals.WaitingOnServer = false; Globals.SoftLogout = false; }