diff options
author | madmaxoft <github@xoft.cz> | 2014-07-19 14:53:41 +0200 |
---|---|---|
committer | madmaxoft <github@xoft.cz> | 2014-07-19 14:53:41 +0200 |
commit | 00c524519ef6c7ceaf4ac91307617cfd65d7cf21 (patch) | |
tree | 3587ecc98aada0ce36da33e50a1d460c17129b3e /src/Simulator | |
parent | Merge pull request #1214 from mc-server/anti-glob (diff) | |
download | cuberite-00c524519ef6c7ceaf4ac91307617cfd65d7cf21.tar cuberite-00c524519ef6c7ceaf4ac91307617cfd65d7cf21.tar.gz cuberite-00c524519ef6c7ceaf4ac91307617cfd65d7cf21.tar.bz2 cuberite-00c524519ef6c7ceaf4ac91307617cfd65d7cf21.tar.lz cuberite-00c524519ef6c7ceaf4ac91307617cfd65d7cf21.tar.xz cuberite-00c524519ef6c7ceaf4ac91307617cfd65d7cf21.tar.zst cuberite-00c524519ef6c7ceaf4ac91307617cfd65d7cf21.zip |
Diffstat (limited to 'src/Simulator')
-rw-r--r-- | src/Simulator/FireSimulator.cpp | 2 | ||||
-rw-r--r-- | src/Simulator/IncrementalRedstoneSimulator.cpp | 10 |
2 files changed, 6 insertions, 6 deletions
diff --git a/src/Simulator/FireSimulator.cpp b/src/Simulator/FireSimulator.cpp index 9433a8c68..2164b6b10 100644 --- a/src/Simulator/FireSimulator.cpp +++ b/src/Simulator/FireSimulator.cpp @@ -98,7 +98,7 @@ void cFireSimulator::SimulateChunk(float a_Dt, int a_ChunkX, int a_ChunkZ, cChun int x = itr->x; int y = itr->y; int z = itr->z; - BLOCKTYPE BlockType = a_Chunk->GetBlock(x,y,z); + BLOCKTYPE BlockType = a_Chunk->GetBlock(x, y, z); if (!IsAllowedBlock(BlockType)) { diff --git a/src/Simulator/IncrementalRedstoneSimulator.cpp b/src/Simulator/IncrementalRedstoneSimulator.cpp index 3dd6417dc..ada8de4b8 100644 --- a/src/Simulator/IncrementalRedstoneSimulator.cpp +++ b/src/Simulator/IncrementalRedstoneSimulator.cpp @@ -570,10 +570,10 @@ void cIncrementalRedstoneSimulator::HandleRedstoneWire(int a_RelBlockX, int a_Re {-1, 1, 0}, { 0, 1, 1}, { 0, 1, -1}, /* Wires one higher, surrounding self stop */ - { 1,-1, 0}, /* Wires one lower, surrounding self start */ - {-1,-1, 0}, - { 0,-1, 1}, - { 0,-1, -1}, /* Wires one lower, surrounding self stop */ + { 1, -1, 0}, /* Wires one lower, surrounding self start */ + {-1, -1, 0}, + { 0, -1, 1}, + { 0, -1, -1}, /* Wires one lower, surrounding self stop */ } ; static const struct // Define which directions the wire will check for repeater prescence @@ -584,7 +584,7 @@ void cIncrementalRedstoneSimulator::HandleRedstoneWire(int a_RelBlockX, int a_Re { 1, 0, 0 }, {-1, 0, 0 }, { 0, 0, 1 }, - { 0, 0,-1 }, + { 0, 0, -1 }, { 0, 1, 0 }, }; |