Refactored reversing logic into seperate function
This commit is contained in:
+13
-2
@@ -274,8 +274,19 @@ inline eBlockFace RotateBlockFaceCW(eBlockFace a_BlockFace)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
inline eBlockFace ReverseBlockFace(eBlockFace a_BlockFace)
|
||||
{
|
||||
switch (a_BlockFace)
|
||||
{
|
||||
case BLOCK_FACE_YP: return BLOCK_FACE_YM;
|
||||
case BLOCK_FACE_XP: return BLOCK_FACE_XM;
|
||||
case BLOCK_FACE_ZP: return BLOCK_FACE_ZM;
|
||||
case BLOCK_FACE_YM: return BLOCK_FACE_YP;
|
||||
case BLOCK_FACE_XM: return BLOCK_FACE_XP;
|
||||
case BLOCK_FACE_ZM: return BLOCK_FACE_ZP;
|
||||
default: return a_BlockFace;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/** Returns the textual representation of the BlockFace constant. */
|
||||
|
||||
Reference in New Issue
Block a user