Restructured code and added bool to stop client from spamming Snapshots to a server when

it wasn't connected to one.
This commit is contained in:
Jocke
2015-12-16 15:47:51 +01:00
parent 6eebce05af
commit 6da5fd1263
3 changed files with 33 additions and 28 deletions
+1 -1
View File
@@ -50,7 +50,7 @@ private:
void ReadFromClients();
void InputLoop();
// Network functions
int Receive(char* data, size_t length);
void Send(Package& package, int playerID);
void Send(Package& package);