summaryrefslogtreecommitdiffstats
path: root/src/BlockArea.cpp
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2016-12-09 12:29:04 +0100
committerGitHub <noreply@github.com>2016-12-09 12:29:04 +0100
commite8fb85be885f6c32fdeb861b12fb8402de66ebe5 (patch)
tree2e2ed40816c0b053ace2f01340e2b667e1d1e28f /src/BlockArea.cpp
parentMerge pull request #3471 from marvinkopf/fix-3417 (diff)
downloadcuberite-e8fb85be885f6c32fdeb861b12fb8402de66ebe5.tar
cuberite-e8fb85be885f6c32fdeb861b12fb8402de66ebe5.tar.gz
cuberite-e8fb85be885f6c32fdeb861b12fb8402de66ebe5.tar.bz2
cuberite-e8fb85be885f6c32fdeb861b12fb8402de66ebe5.tar.lz
cuberite-e8fb85be885f6c32fdeb861b12fb8402de66ebe5.tar.xz
cuberite-e8fb85be885f6c32fdeb861b12fb8402de66ebe5.tar.zst
cuberite-e8fb85be885f6c32fdeb861b12fb8402de66ebe5.zip
Diffstat (limited to 'src/BlockArea.cpp')
-rw-r--r--src/BlockArea.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/BlockArea.cpp b/src/BlockArea.cpp
index b54f6b2e7..2c3af5fec 100644
--- a/src/BlockArea.cpp
+++ b/src/BlockArea.cpp
@@ -1126,7 +1126,7 @@ void cBlockArea::MirrorXY(void)
int MaxZ = m_Size.z - 1;
for (int y = 0; y < m_Size.y; y++)
{
- for (int z = 0; z < HalfZ; z++)
+ for (int z = 0; z <= HalfZ; z++)
{
for (int x = 0; x < m_Size.x; x++)
{
@@ -1164,7 +1164,7 @@ void cBlockArea::MirrorXZ(void)
// We are guaranteed that both blocktypes and blockmetas exist; mirror both at the same time:
int HalfY = m_Size.y / 2;
int MaxY = m_Size.y - 1;
- for (int y = 0; y < HalfY; y++)
+ for (int y = 0; y <= HalfY; y++)
{
for (int z = 0; z < m_Size.z; z++)
{
@@ -1208,7 +1208,7 @@ void cBlockArea::MirrorYZ(void)
{
for (int z = 0; z < m_Size.z; z++)
{
- for (int x = 0; x < HalfX; x++)
+ for (int x = 0; x <= HalfX; x++)
{
int Idx1 = MakeIndex(x, y, z);
int Idx2 = MakeIndex(MaxX - x, y, z);