not started the game if already started

This commit is contained in:
ackimixs
2024-05-08 12:37:51 +02:00
parent 26f11c49ec
commit eb1b18e3a6

View File

@@ -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;