Commit 71a416fc by Thomas Brandého

small fix in setMapData : packet

parent 02b3636a
......@@ -45,8 +45,9 @@ void MapInstance::update()
void MapInstance::setMapData(const MapKoban &new_map)
{
m_map = new_map;
m_current_turn_id = 0;
sf::Packet packet;
packet << MAP_INIT << m_map;
packet << MAP_INIT << m_current_turn_id << m_map;
SocketHandler* socket_handler = m_server->getSocketHandler();
if(socket_handler != nullptr)
socket_handler->broadcastMessage(packet);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment