Improvments at GUI

This commit is contained in:
VladMordock
2021-02-18 19:07:48 +01:00
parent 8a97ff84f8
commit a10cbcf565
4 changed files with 18 additions and 5 deletions

View File

@@ -187,7 +187,12 @@ public class TCPController
Globals.ErrorsGame++;
Console.WriteLine(e.ToString());
PerunHelper.LogError(ref Globals.arrGUILogHistory, $"ERROR TCP - connection closed or port in use, error: {e.Message}",1,1,"?");
bTCPConnectionOnline = false;
// Reset last frame times on broken connection
Globals.LastFrameTime = 0f;
Globals.LastFrameDelay = 0f;
bTCPConnectionOnline = false;
}
// Clean up and prepare for next connection