summaryrefslogtreecommitdiffstats
path: root/src/LinearUpscale.h
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2016-08-04 21:04:03 +0200
committerGitHub <noreply@github.com>2016-08-04 21:04:03 +0200
commitad9fc1767321fc0bd11aaa85f4e5d81177cca7cc (patch)
treeccbb0e62481ce4944107294200c948f835494fe0 /src/LinearUpscale.h
parentMerge pull request #3293 from LogicParrot/blockArea (diff)
parentFixed RasPi builds of unit tests. (diff)
downloadcuberite-ad9fc1767321fc0bd11aaa85f4e5d81177cca7cc.tar
cuberite-ad9fc1767321fc0bd11aaa85f4e5d81177cca7cc.tar.gz
cuberite-ad9fc1767321fc0bd11aaa85f4e5d81177cca7cc.tar.bz2
cuberite-ad9fc1767321fc0bd11aaa85f4e5d81177cca7cc.tar.lz
cuberite-ad9fc1767321fc0bd11aaa85f4e5d81177cca7cc.tar.xz
cuberite-ad9fc1767321fc0bd11aaa85f4e5d81177cca7cc.tar.zst
cuberite-ad9fc1767321fc0bd11aaa85f4e5d81177cca7cc.zip
Diffstat (limited to 'src/LinearUpscale.h')
-rw-r--r--src/LinearUpscale.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/LinearUpscale.h b/src/LinearUpscale.h
index b75cb4f82..d0c2bb41a 100644
--- a/src/LinearUpscale.h
+++ b/src/LinearUpscale.h
@@ -118,7 +118,9 @@ template <typename TYPE> void LinearUpscale2DArray(
// Interpolate each XY cell:
int DstSizeX = (a_SrcSizeX - 1) * a_UpscaleX + 1;
- int DstSizeY = (a_SrcSizeY - 1) * a_UpscaleY + 1;
+ #ifdef _DEBUG
+ int DstSizeY = (a_SrcSizeY - 1) * a_UpscaleY + 1;
+ #endif
for (int y = 0; y < (a_SrcSizeY - 1); y++)
{
int DstY = y * a_UpscaleY;
@@ -198,7 +200,9 @@ template <typename TYPE> void LinearUpscale3DArray(
// Interpolate each XYZ cell:
int DstSizeX = (a_SrcSizeX - 1) * a_UpscaleX + 1;
int DstSizeY = (a_SrcSizeY - 1) * a_UpscaleY + 1;
- int DstSizeZ = (a_SrcSizeZ - 1) * a_UpscaleZ + 1;
+ #ifdef _DEBUG
+ int DstSizeZ = (a_SrcSizeZ - 1) * a_UpscaleZ + 1;
+ #endif
for (int z = 0; z < (a_SrcSizeZ - 1); z++)
{
int DstZ = z * a_UpscaleZ;