mirror of
https://github.com/moparisthebest/minetest
synced 2024-12-23 08:08:47 -05:00
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
This commit is contained in:
parent
b37fffc2c5
commit
4acad897cf
@ -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
|
||||
}
|
||||
*/
|
||||
|
@ -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
|
||||
}
|
||||
*/
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user