From c0f6395cf09f658eb95365c60f67b8a89104cb23 Mon Sep 17 00:00:00 2001 From: Perttu Ahola Date: Wed, 16 Nov 2011 13:03:28 +0200 Subject: Node definition names --- src/client.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'src/client.cpp') diff --git a/src/client.cpp b/src/client.cpp index 5c713e486..661aecda5 100644 --- a/src/client.cpp +++ b/src/client.cpp @@ -848,7 +848,7 @@ void Client::ProcessData(u8 *data, u32 datasize, u16 sender_peer_id) //TimeTaker t1("TOCLIENT_ADDNODE"); MapNode n; - n.deSerialize(&data[8], ser_version, m_nodedef); + n.deSerialize(&data[8], ser_version); addNode(p, n); } @@ -2331,4 +2331,11 @@ ITextureSource* Client::getTextureSource() { return m_tsrc; } +u16 Client::allocateUnknownNodeId(const std::string &name) +{ + errorstream<<"Client::allocateUnknownNodeId(): " + <<"Client cannot allocate node IDs"<