1
0

Fixed tigers weird enums

This commit is contained in:
Tycho 2014-06-16 15:29:49 +01:00
parent d5c84b5fe6
commit 3a7c0c8ce9

View File

@ -501,20 +501,12 @@ void cIncrementalRedstoneSimulator::HandleRedstoneLever(int a_RelBlockX, int a_R
eBlockFace Dir = cBlockLeverHandler::BlockMetaDataToBlockFace(Meta); eBlockFace Dir = cBlockLeverHandler::BlockMetaDataToBlockFace(Meta);
switch (Dir) // Now, flip the direction into the type used by SetBlockLinkedPowered() switch (Dir) // Now, flip the direction into the type used by SetBlockLinkedPowered()
{ {
case BLOCK_FACE_YP: case BLOCK_FACE_YP: Dir = BLOCK_FACE_YM; break;
case BLOCK_FACE_XP: case BLOCK_FACE_XP: Dir = BLOCK_FACE_XM; break;
case BLOCK_FACE_ZP: case BLOCK_FACE_ZP: Dir = BLOCK_FACE_ZM; break;
{ case BLOCK_FACE_YM: Dir = BLOCK_FACE_YP; break;
Dir--; case BLOCK_FACE_XM: Dir = BLOCK_FACE_XP; break;
break; case BLOCK_FACE_ZM :Dir = BLOCK_FACE_ZP; break;
}
case BLOCK_FACE_XM:
case BLOCK_FACE_ZM:
case BLOCK_FACE_YM:
{
Dir++;
break;
}
default: default:
{ {
ASSERT(!"Unhandled lever metadata!"); ASSERT(!"Unhandled lever metadata!");