From 3adeaf1e305a8bbd6ecfaece513b0490022f138a Mon Sep 17 00:00:00 2001 From: ackimixs Date: Sat, 4 May 2024 11:35:47 +0200 Subject: [PATCH] spawn --- TCPServer.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/TCPServer.cpp b/TCPServer.cpp index ef951a0..631797f 100644 --- a/TCPServer.cpp +++ b/TCPServer.cpp @@ -182,8 +182,8 @@ void TCPServer::handleMessage(const std::string& message, int clientSocket) else if (tokens[0] == "ihm") { if (tokens[2] == "spawn") { int spawnPointNb = std::stoi(tokens[3]); - float spawnPoint[3]; - float finishPoint[3]; + std::array spawnPoint{}; + std::array finishPoint{}; switch (spawnPointNb) { case 3: @@ -192,9 +192,9 @@ void TCPServer::handleMessage(const std::string& message, int clientSocket) spawnPoint[1] = 1800; spawnPoint[2] = 0;*/ - /*spawnPoint[0] = 500; + spawnPoint[0] = 500; spawnPoint[1] = 1000; - spawnPoint[2] = 0;*/ + spawnPoint[2] = 0; // For test /*finishPoint[0] = 400;