made server to send map seed for testing
authorPerttu Ahola <celeron55@gmail.com>
Sun, 5 Jun 2011 18:06:54 +0000 (21:06 +0300)
committerPerttu Ahola <celeron55@gmail.com>
Sun, 5 Jun 2011 18:06:54 +0000 (21:06 +0300)
src/server.cpp

index 2a1246496dcb8bf9febc2b3e511754fb7a67be22..16ad80c00ce822dab8903064c80896d8cf48fe04 100644 (file)
@@ -2002,8 +2002,7 @@ void Server::ProcessData(u8 *data, u32 datasize, u16 peer_id)
                        writeU16(&reply[0], TOCLIENT_INIT);
                        writeU8(&reply[2], deployed);
                        writeV3S16(&reply[2+1], floatToInt(player->getPosition()+v3f(0,BS/2,0), BS));
-                       //writeU64(&reply[2+1+6], m_env.getServerMap().getSeed());
-                       writeU64(&reply[2+1+6], 0); // no seed
+                       writeU64(&reply[2+1+6], m_env.getServerMap().getSeed());
                        
                        // Send as reliable
                        m_con.Send(peer_id, 0, reply, true);