aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPerttu Ahola <celeron55@gmail.com>2011-08-22 22:04:46 +0300
committerPerttu Ahola <celeron55@gmail.com>2011-08-22 22:04:46 +0300
commit4acad897cf895e7ddf0810c35e4054588453f913 (patch)
tree663a14a3c57e25c4d3281ad698dddb5823af3914
parentb37fffc2c58ff81d22abad8c147998a033725104 (diff)
downloadminetest-4acad897cf895e7ddf0810c35e4054588453f913.tar.gz
minetest-4acad897cf895e7ddf0810c35e4054588453f913.tar.bz2
minetest-4acad897cf895e7ddf0810c35e4054588453f913.zip
Fixed some protocol comment errors in clientserver.h and elsewhere
-- TOCLIENT_OBJECTDATA: peer ID field is missing -- TOCLIENT_ACTIVE_OBJECT_REMOVE_ADD: added: init length should be u32, not u16
-rw-r--r--src/client.cpp2
-rw-r--r--src/clientserver.h3
-rw-r--r--src/server.cpp1
3 files changed, 4 insertions, 2 deletions
diff --git a/src/client.cpp b/src/client.cpp
index edce25381..a5ed6f61b 100644
--- a/src/client.cpp
+++ b/src/client.cpp
@@ -1417,7 +1417,7 @@ void Client::ProcessData(u8 *data, u32 datasize, u16 sender_peer_id)
for all added objects {
u16 id
u8 type
- u16 initialization data length
+ u32 initialization data length
string initialization data
}
*/
diff --git a/src/clientserver.h b/src/clientserver.h
index 9b8b45c85..2b7c0e642 100644
--- a/src/clientserver.h
+++ b/src/clientserver.h
@@ -90,6 +90,7 @@ enum ToClientCommand
u16 command
u16 number of player positions
for each player:
+ u16 peer_id
v3s32 position*100
v3s32 speed*100
s32 pitch*100
@@ -124,7 +125,7 @@ enum ToClientCommand
for all added objects {
u16 id
u8 type
- u16 initialization data length
+ u32 initialization data length
string initialization data
}
*/
diff --git a/src/server.cpp b/src/server.cpp
index 6bcd1d058..97eaa3a3e 100644
--- a/src/server.cpp
+++ b/src/server.cpp
@@ -774,6 +774,7 @@ void RemoteClient::SendObjectData(
u16 command
u16 number of player positions
for each player:
+ u16 peer_id
v3s32 position*100
v3s32 speed*100
s32 pitch*100