summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2015-04-19 21:34:56 +0200
committerMattes D <github@xoft.cz>2015-04-19 21:34:56 +0200
commitc5ad058424345fd24d51f306d8f08352cfd6705f (patch)
treee0126c63b1a2730a12daf4ba94847bbfb982b0c6
parentFixed typo in NetherForts initialization (diff)
downloadcuberite-c5ad058424345fd24d51f306d8f08352cfd6705f.tar
cuberite-c5ad058424345fd24d51f306d8f08352cfd6705f.tar.gz
cuberite-c5ad058424345fd24d51f306d8f08352cfd6705f.tar.bz2
cuberite-c5ad058424345fd24d51f306d8f08352cfd6705f.tar.lz
cuberite-c5ad058424345fd24d51f306d8f08352cfd6705f.tar.xz
cuberite-c5ad058424345fd24d51f306d8f08352cfd6705f.tar.zst
cuberite-c5ad058424345fd24d51f306d8f08352cfd6705f.zip
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;
}