diff options
author | Elias Fleckenstein <54945686+EliasFleckenstein03@users.noreply.github.com> | 2020-11-04 16:57:47 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-04 16:57:47 +0100 |
commit | 3e16c3a78fff61c20e63ba730d15e94e3bb877b4 (patch) | |
tree | c070350db219f2c4241d22bc31949685c7b42fe9 /src/util/directiontables.h | |
parent | 5d9ae5a91c544fc7fbd475decf47cef7e09ef8fc (diff) | |
parent | 6ccb5835ff55d85156be91473c598eca9d6cb9a6 (diff) | |
download | dragonfireclient-3e16c3a78fff61c20e63ba730d15e94e3bb877b4.tar.xz |
Merge branch 'master' into master
Diffstat (limited to 'src/util/directiontables.h')
-rw-r--r-- | src/util/directiontables.h | 26 |
1 files changed, 12 insertions, 14 deletions
diff --git a/src/util/directiontables.h b/src/util/directiontables.h index ea67521fc..ef00e3bfe 100644 --- a/src/util/directiontables.h +++ b/src/util/directiontables.h @@ -35,16 +35,15 @@ extern const u8 wallmounted_to_facedir[6]; /// Direction in the 6D format. g_27dirs contains corresponding vectors. /// Here P means Positive, N stands for Negative. -enum Direction6D -{ - // 0 +enum Direction6D { +// 0 D6D_ZP, D6D_YP, D6D_XP, D6D_ZN, D6D_YN, D6D_XN, - // 6 +// 6 D6D_XN_YP, D6D_XP_YP, D6D_YP_ZP, @@ -57,7 +56,7 @@ enum Direction6D D6D_XP_YN, D6D_YN_ZP, D6D_YN_ZN, - // 18 +// 18 D6D_XN_YP_ZP, D6D_XP_YP_ZP, D6D_XN_YP_ZN, @@ -66,22 +65,21 @@ enum Direction6D D6D_XP_YN_ZP, D6D_XN_YN_ZN, D6D_XP_YN_ZN, - // 26 +// 26 D6D, - // aliases - D6D_BACK = D6D_ZP, - D6D_TOP = D6D_YP, - D6D_RIGHT = D6D_XP, - D6D_FRONT = D6D_ZN, +// aliases + D6D_BACK = D6D_ZP, + D6D_TOP = D6D_YP, + D6D_RIGHT = D6D_XP, + D6D_FRONT = D6D_ZN, D6D_BOTTOM = D6D_YN, - D6D_LEFT = D6D_XN, + D6D_LEFT = D6D_XN, }; /// Direction in the wallmounted format. /// P is Positive, N is Negative. -enum DirectionWallmounted -{ +enum DirectionWallmounted { DWM_YP, DWM_YN, DWM_XP, |