diff options
author | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-10-03 09:23:39 +0200 |
---|---|---|
committer | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-10-03 09:23:39 +0200 |
commit | 0130e73316c249786ce1e64a6f583ac89692c3e4 (patch) | |
tree | b37b831d12902a8796125c8deae0709268bc7d8b /source/Defines.h | |
parent | Slight refactoring of BlockHandlers - dropping unneeded virtual functions (diff) | |
download | cuberite-0130e73316c249786ce1e64a6f583ac89692c3e4.tar cuberite-0130e73316c249786ce1e64a6f583ac89692c3e4.tar.gz cuberite-0130e73316c249786ce1e64a6f583ac89692c3e4.tar.bz2 cuberite-0130e73316c249786ce1e64a6f583ac89692c3e4.tar.lz cuberite-0130e73316c249786ce1e64a6f583ac89692c3e4.tar.xz cuberite-0130e73316c249786ce1e64a6f583ac89692c3e4.tar.zst cuberite-0130e73316c249786ce1e64a6f583ac89692c3e4.zip |
Diffstat (limited to 'source/Defines.h')
-rw-r--r-- | source/Defines.h | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/source/Defines.h b/source/Defines.h index 8ad71475b..e2b5a0501 100644 --- a/source/Defines.h +++ b/source/Defines.h @@ -21,12 +21,13 @@ extern bool g_BlockOneHitDig[]; // Block face constants, used in PlayerDigging and PlayerBlockPlacement packets enum { - BLOCK_FACE_BOTTOM = 0, // Interacting with the bottom face of the block - BLOCK_FACE_TOP = 1, // Interacting with the top face of the block - BLOCK_FACE_NORTH = 2, // Interacting with the northern face of the block - BLOCK_FACE_SOUTH = 3, // Interacting with the southern face of the block - BLOCK_FACE_WEST = 4, // Interacting with the western face of the block - BLOCK_FACE_EAST = 5, // Interacting with the eastern face of the block + BLOCK_FACE_NONE = -1, // Interacting with no block face - swinging the item in the air + BLOCK_FACE_BOTTOM = 0, // Interacting with the bottom face of the block + BLOCK_FACE_TOP = 1, // Interacting with the top face of the block + BLOCK_FACE_NORTH = 2, // Interacting with the northern face of the block + BLOCK_FACE_SOUTH = 3, // Interacting with the southern face of the block + BLOCK_FACE_WEST = 4, // Interacting with the western face of the block + BLOCK_FACE_EAST = 5, // Interacting with the eastern face of the block } ; // PlayerDigging status constants: |