mirror of
https://github.com/modelec/ihm.git
synced 2026-03-18 21:30:52 +01:00
cast to int to remove decimal
This commit is contained in:
@@ -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])));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user