diff options
author | Perttu Ahola <celeron55@gmail.com> | 2011-03-02 02:00:11 +0200 |
---|---|---|
committer | Perttu Ahola <celeron55@gmail.com> | 2011-03-02 02:00:11 +0200 |
commit | 2e7b15fed37e6e81844b3cac0e37671ff3a8b4da (patch) | |
tree | c71ca1e535aff6770077c82193d2b2233997c61b /src/client.cpp | |
parent | 9a22d02903549c09f059b12f0ec06ea12a19abbb (diff) | |
download | minetest-2e7b15fed37e6e81844b3cac0e37671ff3a8b4da.tar.gz minetest-2e7b15fed37e6e81844b3cac0e37671ff3a8b4da.tar.bz2 minetest-2e7b15fed37e6e81844b3cac0e37671ff3a8b4da.zip |
mapgen work-in-progress
Diffstat (limited to 'src/client.cpp')
-rw-r--r-- | src/client.cpp | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/client.cpp b/src/client.cpp index fe1669ddd..cede0af86 100644 --- a/src/client.cpp +++ b/src/client.cpp @@ -510,10 +510,13 @@ void Client::ProcessData(u8 *data, u32 datasize, u16 sender_peer_id) assert(player != NULL); player->setPosition(playerpos_f); } - - // Get map seed - m_map_seed = readU64(&data[2+1+6]); - dstream<<"Client: received map seed: "<<m_map_seed<<std::endl; + + if(datasize >= 2+1+6+8) + { + // Get map seed + m_map_seed = readU64(&data[2+1+6]); + dstream<<"Client: received map seed: "<<m_map_seed<<std::endl; + } // Reply to server u32 replysize = 2; |