summaryrefslogtreecommitdiffstats
path: root/src/BlockArea.cpp
diff options
context:
space:
mode:
authorchangyong guo <guo1487@163.com>2018-06-25 18:31:05 +0200
committerMattes D <github@xoft.cz>2018-06-25 18:31:05 +0200
commitbe1f06520ca6fb0c1f804c81d55858a57d3b86e6 (patch)
treea8bf3a9da94a7b7058d5bfcfd6e05d9b21b106c4 /src/BlockArea.cpp
parentUpdate m_IsSolid assignments in BlockInfo (#4167) (diff)
downloadcuberite-be1f06520ca6fb0c1f804c81d55858a57d3b86e6.tar
cuberite-be1f06520ca6fb0c1f804c81d55858a57d3b86e6.tar.gz
cuberite-be1f06520ca6fb0c1f804c81d55858a57d3b86e6.tar.bz2
cuberite-be1f06520ca6fb0c1f804c81d55858a57d3b86e6.tar.lz
cuberite-be1f06520ca6fb0c1f804c81d55858a57d3b86e6.tar.xz
cuberite-be1f06520ca6fb0c1f804c81d55858a57d3b86e6.tar.zst
cuberite-be1f06520ca6fb0c1f804c81d55858a57d3b86e6.zip
Diffstat (limited to '')
-rw-r--r--src/BlockArea.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/BlockArea.cpp b/src/BlockArea.cpp
index 9dce7e916..a991c9ed5 100644
--- a/src/BlockArea.cpp
+++ b/src/BlockArea.cpp
@@ -1200,7 +1200,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++)
{
@@ -1255,7 +1255,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++)
{
@@ -1316,7 +1316,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++)
{
auto Idx1 = MakeIndex(x, y, z);
auto Idx2 = MakeIndex(MaxX - x, y, z);