summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/Entities/HangingEntity.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/Entities/HangingEntity.h b/src/Entities/HangingEntity.h
index 507502ac6..9d783006c 100644
--- a/src/Entities/HangingEntity.h
+++ b/src/Entities/HangingEntity.h
@@ -27,7 +27,10 @@ public:
eBlockFace GetFacing() const { return cHangingEntity::ProtocolFaceToBlockFace(m_Facing); }
/** Set the direction in which the entity is facing. */
- void SetFacing(eBlockFace a_Facing) { m_Facing = cHangingEntity::BlockFaceToProtocolFace(a_Facing); }
+ void SetFacing(eBlockFace a_Facing)
+ {
+ m_Facing = cHangingEntity::BlockFaceToProtocolFace(a_Facing);
+ }
// tolua_end
@@ -37,7 +40,7 @@ public:
/** Set the direction in which the entity is facing. */
void SetProtocolFacing(Byte a_Facing)
{
- ASSERT((a_Facing <= 3) && (a_Facing >= 0));
+ ASSERT(a_Facing <= 3);
m_Facing = a_Facing;
}