From 52122c342d335a2561ace87c9d8deaa16a136604 Mon Sep 17 00:00:00 2001 From: Perttu Ahola Date: Sat, 31 Mar 2012 16:23:26 +0300 Subject: Add 'fly' and 'fast' privileges and the underlying privileges-to-client system --- src/clientserver.h | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'src/clientserver.h') diff --git a/src/clientserver.h b/src/clientserver.h index def4570e1..461c13cd2 100644 --- a/src/clientserver.h +++ b/src/clientserver.h @@ -50,9 +50,13 @@ with this program; if not, write to the Free Software Foundation, Inc., PROTOCOL_VERSION 9: ContentFeatures and NodeDefManager use a different serialization format; better for future version cross-compatibility + Many things + PROTOCOL_VERSION 10: + TOCLIENT_PRIVILEGES + Version raised to force 'fly' and 'fast' privileges into effect. */ -#define PROTOCOL_VERSION 9 +#define PROTOCOL_VERSION 10 #define PROTOCOL_ID 0x4f457403 @@ -291,6 +295,15 @@ enum ToClientCommand u16 command s32 sound_id */ + + TOCLIENT_PRIVILEGES = 0x41, + /* + u16 command + u16 number of privileges + for each privilege + u16 len + u8[len] privilege + */ }; enum ToServerCommand -- cgit v1.2.3