Fixed some protocol comment errors in clientserver.h and elsewhere
authorPerttu Ahola <celeron55@gmail.com>
Mon, 22 Aug 2011 19:04:46 +0000 (22:04 +0300)
committerPerttu Ahola <celeron55@gmail.com>
Mon, 22 Aug 2011 19:04:46 +0000 (22:04 +0300)
-- TOCLIENT_OBJECTDATA: peer ID field is missing
-- TOCLIENT_ACTIVE_OBJECT_REMOVE_ADD: added: init length should be u32, not u16

src/client.cpp
src/clientserver.h
src/server.cpp

index edce25381148313ab47259a20d92cd6fa947d075..a5ed6f61bf204807399b9e342d7f330bf83aa754 100644 (file)
@@ -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
                                }
                        */
index 9b8b45c8500ef2ac2c6177923e0d24093fc3229b..2b7c0e642e9df81b2a595665ef1c99b9fc81d9f8 100644 (file)
@@ -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
                }
        */
index 6bcd1d0589e5028a5152e345826f6be99e296b56..97eaa3a3ea48f12c4f876e917b8014fda07f7869 100644 (file)
@@ -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