Skip to content

Commit 90bce97

Browse files
fix: #2255 (#2446)
1 parent fe419b1 commit 90bce97

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

Intersect.Client.Core/MonoGame/Network/MonoSocket.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ public override void Update()
251251
);
252252
}
253253

254-
if (MainMenu.LastNetworkStatusChangeTime + ServerStatusPingInterval * 1.5f < now)
254+
if (MainMenu.LastNetworkStatusChangeTime + (int)(ServerStatusPingInterval * 1.5f) < now)
255255
{
256256
MainMenu.SetNetworkStatus(NetworkStatus.Offline);
257257
}

Intersect.Client.Core/Networking/Network.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,6 @@ public static bool InterruptDisconnectsIfConnected()
9999

100100
private static void OnConnected(INetworkLayerInterface sender, ConnectionEventArgs connectionEventArgs)
101101
{
102-
Globals.WaitingOnServer = false;
103102
Globals.SoftLogout = false;
104103
}
105104

0 commit comments

Comments
 (0)