cast to int to remove decimal

This commit is contained in:
ackimixs
2024-04-11 16:12:48 +02:00
parent ad325a5603
commit 5a6652ca7b

View File

@@ -238,6 +238,6 @@ void MainWindow::handleMessage(const std::string& message)
{
std::vector<std::string> msg = TCPSocket::split(list[3], ",");
std::cout << "X : " << msg[0] << " Y : " << msg[1] << std::endl;
this->inGame->updatePos(msg[0], msg[1]);
this->inGame->updatePos(std::to_string(std::stoi(msg[0])), std::to_string(std::stoi(msg[1])));
}
}