1
0
Fork 0

Replace all single-digit hex constants with two-digit version

This commit is contained in:
Alexander Harkness 2020-04-10 12:25:36 +01:00
parent db118af6ae
commit 0d72270186
3 changed files with 15 additions and 15 deletions

View File

@ -16,9 +16,9 @@ class cWorldInterface;
class cBlockBedHandler :
public cYawRotator<cBlockEntityHandler, 0x3, 0x02, 0x03, 0x00, 0x01>
public cYawRotator<cBlockEntityHandler, 0x03, 0x02, 0x03, 0x00, 0x01>
{
using super = cYawRotator<cBlockEntityHandler, 0x3, 0x02, 0x03, 0x00, 0x01>;
using super = cYawRotator<cBlockEntityHandler, 0x03, 0x02, 0x03, 0x00, 0x01>;
public:

View File

@ -97,7 +97,7 @@
using cBlockGlazedTerracottaHandler = cClearMetaOnDrop<cYawRotator<cBlockHandler, 0x3, 0x1, 0x3, 0x0, 0x2>>;
using cBlockGlazedTerracottaHandler = cClearMetaOnDrop<cYawRotator<cBlockHandler, 0x03, 0x01, 0x03, 0x00, 0x02>>;

View File

@ -174,11 +174,11 @@ public:
selects the direction bits from the block's meta values. */
template <
class Base,
NIBBLETYPE BitMask = 0x7,
NIBBLETYPE North = 0x2,
NIBBLETYPE East = 0x5,
NIBBLETYPE South = 0x3,
NIBBLETYPE West = 0x4,
NIBBLETYPE BitMask = 0x07,
NIBBLETYPE North = 0x02,
NIBBLETYPE East = 0x05,
NIBBLETYPE South = 0x03,
NIBBLETYPE West = 0x04,
bool AssertIfNotMatched = false
>
class cYawRotator:
@ -250,13 +250,13 @@ public:
selects the direction bits from the block's meta values. */
template <
class Base,
NIBBLETYPE BitMask = 0x7,
NIBBLETYPE North = 0x2,
NIBBLETYPE East = 0x5,
NIBBLETYPE South = 0x3,
NIBBLETYPE West = 0x4,
NIBBLETYPE Up = 0x1,
NIBBLETYPE Down = 0x0
NIBBLETYPE BitMask = 0x07,
NIBBLETYPE North = 0x02,
NIBBLETYPE East = 0x05,
NIBBLETYPE South = 0x03,
NIBBLETYPE West = 0x04,
NIBBLETYPE Up = 0x01,
NIBBLETYPE Down = 0x00
>
class cPitchYawRotator:
public cYawRotator<Base, BitMask, North, East, South, West>