diff options
author | Perttu Ahola <celeron55@gmail.com> | 2011-06-05 21:06:54 +0300 |
---|---|---|
committer | Perttu Ahola <celeron55@gmail.com> | 2011-06-05 21:06:54 +0300 |
commit | c68f21214dfea8184810f5dd91800b61910551fd (patch) | |
tree | a748605d64a96643ce667a259350807612a65351 /src | |
parent | d2a145b8266b63e6de27e8df95a72db528cdf28e (diff) | |
download | minetest-c68f21214dfea8184810f5dd91800b61910551fd.tar.gz minetest-c68f21214dfea8184810f5dd91800b61910551fd.tar.bz2 minetest-c68f21214dfea8184810f5dd91800b61910551fd.zip |
made server to send map seed for testing
Diffstat (limited to 'src')
-rw-r--r-- | src/server.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/server.cpp b/src/server.cpp index 2a1246496..16ad80c00 100644 --- a/src/server.cpp +++ b/src/server.cpp @@ -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); |