diff options
Diffstat (limited to 'src/Simulator/Simulator.cpp')
-rw-r--r-- | src/Simulator/Simulator.cpp | 66 |
1 files changed, 6 insertions, 60 deletions
diff --git a/src/Simulator/Simulator.cpp b/src/Simulator/Simulator.cpp index 7bf553912..40a709b76 100644 --- a/src/Simulator/Simulator.cpp +++ b/src/Simulator/Simulator.cpp @@ -13,80 +13,26 @@ std::array<Vector3i, 5> cSimulator::GetLinkedOffsets(const Vector3i Offset) { if (Offset.x == -1) { - return - { - { - { -2, 0, 0 }, - { -1, -1, 0 }, - { -1, 1, 0 }, - { -1, 0, -1 }, - { -1, 0, 1 } - } - }; + return {{{-2, 0, 0}, {-1, -1, 0}, {-1, 1, 0}, {-1, 0, -1}, {-1, 0, 1}}}; } else if (Offset.x == 1) { - return - { - { - { 2, 0, 0 }, - { 1, -1, 0 }, - { 1, 1, 0 }, - { 1, 0, -1 }, - { 1, 0, 1 } - } - }; + return {{{2, 0, 0}, {1, -1, 0}, {1, 1, 0}, {1, 0, -1}, {1, 0, 1}}}; } else if (Offset.y == -1) { - return - { - { - { 0, -2, 0 }, - { -1, -1, 0 }, - { 1, -1, 0 }, - { 0, -1, -1 }, - { 0, -1, 1 } - } - }; + return {{{0, -2, 0}, {-1, -1, 0}, {1, -1, 0}, {0, -1, -1}, {0, -1, 1}}}; } else if (Offset.y == 1) { - return - { - { - { 0, 2, 0 }, - { -1, 1, 0 }, - { 1, 1, 0 }, - { 0, 1, -1 }, - { 0, 1, 1 } - } - }; + return {{{0, 2, 0}, {-1, 1, 0}, {1, 1, 0}, {0, 1, -1}, {0, 1, 1}}}; } else if (Offset.z == -1) { - return - { - { - { 0, 0, -2 }, - { -1, 0, -1 }, - { 1, 0, -1 }, - { 0, -1, -1 }, - { 0, 1, -1 } - } - }; + return {{{0, 0, -2}, {-1, 0, -1}, {1, 0, -1}, {0, -1, -1}, {0, 1, -1}}}; } - return - { - { - { 0, 0, 2 }, - { -1, 0, 1 }, - { 1, 0, 1 }, - { 0, -1, 1 }, - { 0, 1, 1 } - } - }; + return {{{0, 0, 2}, {-1, 0, 1}, {1, 0, 1}, {0, -1, 1}, {0, 1, 1}}}; } |