aboutsummaryrefslogtreecommitdiff
path: root/src/network/networkprotocol.h
diff options
context:
space:
mode:
authorSmallJoker <mk939@ymail.com>2018-06-20 22:36:08 +0200
committerSmallJoker <mk939@ymail.com>2018-06-26 15:38:42 +0200
commitdb42542e271a00efd017b192f3a63e04f5b3dbf4 (patch)
tree98e8a8381121415f86527252663628b1245f34ec /src/network/networkprotocol.h
parent7bdf5eae05f63a98a13e520f98e68b9e7d9d544b (diff)
downloadhax-minetest-server-db42542e271a00efd017b192f3a63e04f5b3dbf4.tar.gz
hax-minetest-server-db42542e271a00efd017b192f3a63e04f5b3dbf4.zip
Rename CSM flavours to restrictions
& Satisfy LINT
Diffstat (limited to 'src/network/networkprotocol.h')
-rw-r--r--src/network/networkprotocol.h22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/network/networkprotocol.h b/src/network/networkprotocol.h
index 0a5701e59..3d682a0ad 100644
--- a/src/network/networkprotocol.h
+++ b/src/network/networkprotocol.h
@@ -169,7 +169,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
* sender
* type (RAW, NORMAL, ANNOUNCE, SYSTEM)
* content
- Add TOCLIENT_CSM_FLAVOUR_LIMITS to define which CSM flavour should be
+ Add TOCLIENT_CSM_RESTRICTION_FLAGS to define which CSM features should be
limited
Add settable player collisionbox. Breaks compatibility with older
clients as a 1-node vertical offset has been removed from player's
@@ -283,9 +283,9 @@ enum ToClientCommand
f1000 time_speed
*/
- TOCLIENT_CSM_FLAVOUR_LIMITS = 0x2A,
+ TOCLIENT_CSM_RESTRICTION_FLAGS = 0x2A,
/*
- u32 CSMFlavourLimits byteflag
+ u32 CSMRestrictionFlags byteflag
*/
// (oops, there is some gap here)
@@ -928,12 +928,12 @@ enum PlayerListModifer: u8
PLAYER_LIST_REMOVE,
};
-enum CSMFlavourLimit : u64 {
- CSM_FL_NONE = 0x00000000,
- CSM_FL_LOAD_CLIENT_MODS = 0x00000001, // Disable mods provided by clients
- CSM_FL_CHAT_MESSAGES = 0x00000002, // Disable chat message sending from CSM
- CSM_FL_READ_ITEMDEFS = 0x00000004, // Disable itemdef lookups
- CSM_FL_READ_NODEDEFS = 0x00000008, // Disable nodedef lookups
- CSM_FL_LOOKUP_NODES = 0x00000010, // Limit node lookups
- CSM_FL_ALL = 0xFFFFFFFF,
+enum CSMRestrictionFlags : u64 {
+ CSM_RF_NONE = 0x00000000,
+ CSM_RF_LOAD_CLIENT_MODS = 0x00000001, // Disable mods provided by clients
+ CSM_RF_CHAT_MESSAGES = 0x00000002, // Disable chat message sending from CSM
+ CSM_RF_READ_ITEMDEFS = 0x00000004, // Disable itemdef lookups
+ CSM_RF_READ_NODEDEFS = 0x00000008, // Disable nodedef lookups
+ CSM_RF_LOOKUP_NODES = 0x00000010, // Limit node lookups
+ CSM_RF_ALL = 0xFFFFFFFF,
};