mirror of
https://github.com/luanti-org/luanti.git
synced 2025-07-02 16:38:41 +00:00
made server to send map seed for testing
This commit is contained in:
parent
d2a145b826
commit
c68f21214d
1 changed files with 1 additions and 2 deletions
|
@ -2002,8 +2002,7 @@ void Server::ProcessData(u8 *data, u32 datasize, u16 peer_id)
|
||||||
writeU16(&reply[0], TOCLIENT_INIT);
|
writeU16(&reply[0], TOCLIENT_INIT);
|
||||||
writeU8(&reply[2], deployed);
|
writeU8(&reply[2], deployed);
|
||||||
writeV3S16(&reply[2+1], floatToInt(player->getPosition()+v3f(0,BS/2,0), BS));
|
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], m_env.getServerMap().getSeed());
|
||||||
writeU64(&reply[2+1+6], 0); // no seed
|
|
||||||
|
|
||||||
// Send as reliable
|
// Send as reliable
|
||||||
m_con.Send(peer_id, 0, reply, true);
|
m_con.Send(peer_id, 0, reply, true);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue