mirror of
				https://github.com/luanti-org/luanti.git
				synced 2025-11-04 01:05:48 +01: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:
		@@ -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
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user