mirror of
https://github.com/modelec/TCPSocketServer.git
synced 2026-01-19 00:47:36 +01:00
not started the game if already started
This commit is contained in:
@@ -247,6 +247,10 @@ void TCPServer::handleMessage(const std::string& message, int clientSocket)
|
||||
}
|
||||
else if (tokens[1] == "strat" && tokens[2] == "start")
|
||||
{
|
||||
if (this->gameStarted) {
|
||||
return;
|
||||
}
|
||||
|
||||
this->broadcastMessage(message, clientSocket);
|
||||
|
||||
this->gameStarted = true;
|
||||
|
||||
Reference in New Issue
Block a user