summaryrefslogtreecommitdiffstats
path: root/source/ChunkDef.h
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2013-08-07 15:46:43 +0200
committermadmaxoft <github@xoft.cz>2013-08-07 15:46:43 +0200
commit3d027a8928ee423ee6a475637752bd50a5f0d44c (patch)
tree82c6993605326422e188410dda8b897a28ce16ef /source/ChunkDef.h
parentMerge pull request #47 from tonibm19/master (diff)
parentDebuggers plugin: added the "/spidey" command. (diff)
downloadcuberite-3d027a8928ee423ee6a475637752bd50a5f0d44c.tar
cuberite-3d027a8928ee423ee6a475637752bd50a5f0d44c.tar.gz
cuberite-3d027a8928ee423ee6a475637752bd50a5f0d44c.tar.bz2
cuberite-3d027a8928ee423ee6a475637752bd50a5f0d44c.tar.lz
cuberite-3d027a8928ee423ee6a475637752bd50a5f0d44c.tar.xz
cuberite-3d027a8928ee423ee6a475637752bd50a5f0d44c.tar.zst
cuberite-3d027a8928ee423ee6a475637752bd50a5f0d44c.zip
Diffstat (limited to '')
-rw-r--r--source/ChunkDef.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/source/ChunkDef.h b/source/ChunkDef.h
index 7f9c0ca98..3e78b59b1 100644
--- a/source/ChunkDef.h
+++ b/source/ChunkDef.h
@@ -137,7 +137,7 @@ public:
/// Converts absolute block coords into relative (chunk + block) coords:
inline static void AbsoluteToRelative(/* in-out */ int & a_X, int & a_Y, int & a_Z, /* out */ int & a_ChunkX, int & a_ChunkZ )
{
- BlockToChunk(a_X, a_Y, a_Z, a_ChunkX, a_ChunkZ);
+ BlockToChunk(a_X, a_Z, a_ChunkX, a_ChunkZ);
a_X = a_X - a_ChunkX * Width;
a_Z = a_Z - a_ChunkZ * Width;
@@ -145,9 +145,8 @@ public:
/// Converts absolute block coords to chunk coords:
- inline static void BlockToChunk( int a_X, int a_Y, int a_Z, int & a_ChunkX, int & a_ChunkZ )
+ inline static void BlockToChunk(int a_X, int a_Z, int & a_ChunkX, int & a_ChunkZ)
{
- (void)a_Y;
a_ChunkX = a_X / Width;
if ((a_X < 0) && (a_X % Width != 0))
{