diff options
author | admin@omencraft.com <admin@omencraft.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2011-10-26 20:47:50 +0200 |
---|---|---|
committer | admin@omencraft.com <admin@omencraft.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2011-10-26 20:47:50 +0200 |
commit | 7b00d2815765f16b4a5cac8b5d0bf6d13d56acda (patch) | |
tree | 057af5ee1604c7a0b8d423bb2d138839762797ca /source/cClientHandle.h | |
parent | Added CreateInventoryAction packet for creative mode. Used cPacketEntityEquipment as template. Forced server into Creative Mode. Can't break blocks yet. Player can stil be damaged in creative mode and dying takes you back to survival mode. (diff) | |
download | cuberite-7b00d2815765f16b4a5cac8b5d0bf6d13d56acda.tar cuberite-7b00d2815765f16b4a5cac8b5d0bf6d13d56acda.tar.gz cuberite-7b00d2815765f16b4a5cac8b5d0bf6d13d56acda.tar.bz2 cuberite-7b00d2815765f16b4a5cac8b5d0bf6d13d56acda.tar.lz cuberite-7b00d2815765f16b4a5cac8b5d0bf6d13d56acda.tar.xz cuberite-7b00d2815765f16b4a5cac8b5d0bf6d13d56acda.tar.zst cuberite-7b00d2815765f16b4a5cac8b5d0bf6d13d56acda.zip |
Diffstat (limited to 'source/cClientHandle.h')
-rw-r--r-- | source/cClientHandle.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/cClientHandle.h b/source/cClientHandle.h index 224ba46b3..a704ffc0e 100644 --- a/source/cClientHandle.h +++ b/source/cClientHandle.h @@ -20,6 +20,7 @@ public: ~cClientHandle();
static const int VIEWDISTANCE = 13;
+ static const int GAMEMODE = 1; //0 = Survival, 1 = Creative;
const cSocket & GetSocket();
cPlayer* GetPlayer() { return m_Player; } // tolua_export
|