Remove lag-drop frame workaround.

This commit is contained in:
Paul Chote
2017-02-02 19:13:14 +00:00
parent 07c9c9ee8c
commit b71d4ba7a3
2 changed files with 3 additions and 8 deletions

View File

@@ -542,11 +542,6 @@ namespace OpenRA.Server
}
public void DropClient(Connection toDrop)
{
DropClient(toDrop, toDrop.MostRecentFrame);
}
public void DropClient(Connection toDrop, int frame)
{
if (!PreConns.Remove(toDrop))
{
@@ -584,7 +579,7 @@ namespace OpenRA.Server
}
}
DispatchOrders(toDrop, frame, new byte[] { 0xbf });
DispatchOrders(toDrop, toDrop.MostRecentFrame, new byte[] { 0xbf });
// All clients have left: clean up
if (!Conns.Any())

View File

@@ -49,7 +49,7 @@ namespace OpenRA.Mods.Common.Server
var client = server.GetClient(c);
if (client == null)
{
server.DropClient(c, -1);
server.DropClient(c);
server.SendMessage("A player has been dropped after timing out.");
continue;
}
@@ -66,7 +66,7 @@ namespace OpenRA.Mods.Common.Server
else
{
server.SendMessage(client.Name + " has been dropped after timing out.");
server.DropClient(c, -1);
server.DropClient(c);
}
}