summaryrefslogtreecommitdiffstats
path: root/tests/ChunkData/ArraytoCoord.cpp
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2014-05-29 19:42:39 +0200
committermadmaxoft <github@xoft.cz>2014-05-29 19:43:01 +0200
commitc5763f3af700fe2df0be0ceb2fe9a580384c839e (patch)
treeb1c0a42d1fe6743e3d79f12c16b585fca96f7dee /tests/ChunkData/ArraytoCoord.cpp
parentFixed overflow bug (diff)
downloadcuberite-c5763f3af700fe2df0be0ceb2fe9a580384c839e.tar
cuberite-c5763f3af700fe2df0be0ceb2fe9a580384c839e.tar.gz
cuberite-c5763f3af700fe2df0be0ceb2fe9a580384c839e.tar.bz2
cuberite-c5763f3af700fe2df0be0ceb2fe9a580384c839e.tar.lz
cuberite-c5763f3af700fe2df0be0ceb2fe9a580384c839e.tar.xz
cuberite-c5763f3af700fe2df0be0ceb2fe9a580384c839e.tar.zst
cuberite-c5763f3af700fe2df0be0ceb2fe9a580384c839e.zip
Diffstat (limited to 'tests/ChunkData/ArraytoCoord.cpp')
-rw-r--r--tests/ChunkData/ArraytoCoord.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/ChunkData/ArraytoCoord.cpp b/tests/ChunkData/ArraytoCoord.cpp
index 37533de77..4942ababb 100644
--- a/tests/ChunkData/ArraytoCoord.cpp
+++ b/tests/ChunkData/ArraytoCoord.cpp
@@ -13,13 +13,13 @@ int main(int argc, char** argv)
BLOCKTYPE SrcBlockBuffer[16 * 16 * 256];
memset(SrcBlockBuffer, 0x00, 16 * 16 * 256);
SrcBlockBuffer[7 + (4 * 16) + (5 * 16 * 16)] = 0xCD;
- buffer.SetBlocks(SrcBlockBuffer);
+ buffer.SetBlockTypes(SrcBlockBuffer);
testassert(buffer.GetBlock(7,5,4) == 0xCD);
NIBBLETYPE SrcNibbleBuffer[16 * 16 * 256 / 2];
memset(SrcNibbleBuffer, 0x00, 16 * 16 * 256 / 2);
SrcNibbleBuffer[(6 + (1 * 16) + (2 * 16 * 16)) / 2] = 0xE;
- buffer.SetMeta(SrcNibbleBuffer);
+ buffer.SetMetas(SrcNibbleBuffer);
testassert(buffer.GetMeta(6, 2, 1) == 0xE);
memset(SrcNibbleBuffer, 0x00, 16 * 16 * 256 / 2);
@@ -40,13 +40,13 @@ int main(int argc, char** argv)
BLOCKTYPE SrcBlockBuffer[16 * 16 * 256];
memset(SrcBlockBuffer, 0x00, 16 * 16 * 256);
SrcBlockBuffer[7 + (4 * 16) + (24 * 16 * 16)] = 0xCD;
- buffer.SetBlocks(SrcBlockBuffer);
+ buffer.SetBlockTypes(SrcBlockBuffer);
testassert(buffer.GetBlock(7, 24, 4) == 0xCD);
NIBBLETYPE SrcNibbleBuffer[16 * 16 * 256 / 2];
memset(SrcNibbleBuffer, 0x00, 16 * 16 * 256 / 2);
SrcNibbleBuffer[(6 + (1 * 16) + (24 * 16 * 16)) / 2] = 0xE;
- buffer.SetMeta(SrcNibbleBuffer);
+ buffer.SetMetas(SrcNibbleBuffer);
testassert(buffer.GetMeta(6, 24, 1) == 0xE);
memset(SrcNibbleBuffer, 0x00, 16 * 16 * 256 /2);
@@ -66,12 +66,12 @@ int main(int argc, char** argv)
BLOCKTYPE SrcBlockBuffer[16 * 16 * 256];
memset(SrcBlockBuffer, 0x00, 16 * 16 * 256);
- buffer.SetBlocks(SrcBlockBuffer);
+ buffer.SetBlockTypes(SrcBlockBuffer);
testassert(buffer.GetBlock(7, 24, 4) == 0x00);
NIBBLETYPE SrcNibbleBuffer[16 * 16 * 256/2];
memset(SrcNibbleBuffer, 0x00, 16 * 16 * 256 /2);
- buffer.SetMeta(SrcNibbleBuffer);
+ buffer.SetMetas(SrcNibbleBuffer);
testassert(buffer.GetMeta(6, 24, 1) == 0x0);
memset(SrcNibbleBuffer, 0x00, 16 * 16 * 256 /2);