Improved the speed a little more.
This commit is contained in:
parent
634c4d6770
commit
5374730753
@ -1224,7 +1224,7 @@ bool cIncrementalRedstoneSimulator::IsRepeaterPowered(int a_BlockX, int a_BlockY
|
|||||||
bool cIncrementalRedstoneSimulator::IsRepeaterLocked(int a_BlockX, int a_BlockY, int a_BlockZ, NIBBLETYPE a_Meta)
|
bool cIncrementalRedstoneSimulator::IsRepeaterLocked(int a_BlockX, int a_BlockY, int a_BlockZ, NIBBLETYPE a_Meta)
|
||||||
{
|
{
|
||||||
// Change checking direction according to meta rotation.
|
// Change checking direction according to meta rotation.
|
||||||
switch (m_World.GetBlockMeta(a_BlockX, a_BlockY, a_BlockZ) & 0x3) //compare my direction to my neighbor's
|
switch (a_Meta & 0x3) //compare my direction to my neighbor's
|
||||||
{
|
{
|
||||||
// If N/S check E/W <<<<<
|
// If N/S check E/W <<<<<
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user