diff options
author | Tiger Wang <ziwei.tiger@hotmail.co.uk> | 2015-06-07 13:03:28 +0200 |
---|---|---|
committer | Tiger Wang <ziwei.tiger@hotmail.co.uk> | 2015-06-07 13:54:07 +0200 |
commit | 061866616d44c127871e95eb8dd6c713bcd3a2c8 (patch) | |
tree | c51668805b38311854a34e61cb7719a666b3aa4c /src/Simulator/IncrementalRedstoneSimulator.h | |
parent | Vector hasher is now a separate class (diff) | |
download | cuberite-061866616d44c127871e95eb8dd6c713bcd3a2c8.tar cuberite-061866616d44c127871e95eb8dd6c713bcd3a2c8.tar.gz cuberite-061866616d44c127871e95eb8dd6c713bcd3a2c8.tar.bz2 cuberite-061866616d44c127871e95eb8dd6c713bcd3a2c8.tar.lz cuberite-061866616d44c127871e95eb8dd6c713bcd3a2c8.tar.xz cuberite-061866616d44c127871e95eb8dd6c713bcd3a2c8.tar.zst cuberite-061866616d44c127871e95eb8dd6c713bcd3a2c8.zip |
Diffstat (limited to 'src/Simulator/IncrementalRedstoneSimulator.h')
-rw-r--r-- | src/Simulator/IncrementalRedstoneSimulator.h | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/Simulator/IncrementalRedstoneSimulator.h b/src/Simulator/IncrementalRedstoneSimulator.h index 9fbefae73..e4250c0b9 100644 --- a/src/Simulator/IncrementalRedstoneSimulator.h +++ b/src/Simulator/IncrementalRedstoneSimulator.h @@ -411,11 +411,7 @@ private: inline static Vector3i AdjustRelativeCoords(const Vector3i & a_RelPosition) { - return { - (a_RelPosition.x % cChunkDef::Width + cChunkDef::Width) % cChunkDef::Width, - a_RelPosition.y, - (a_RelPosition.z % cChunkDef::Width + cChunkDef::Width) % cChunkDef::Width - }; + return { (a_RelPosition.x % cChunkDef::Width + cChunkDef::Width) % cChunkDef::Width, a_RelPosition.y, (a_RelPosition.z % cChunkDef::Width + cChunkDef::Width) % cChunkDef::Width }; } }; |