summaryrefslogtreecommitdiffstats
path: root/src/Blocks
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@hotmail.co.uk>2015-03-14 01:59:53 +0100
committerTiger Wang <ziwei.tiger@hotmail.co.uk>2015-03-14 01:59:53 +0100
commite94886c14068eb3b9f70e4ec4ae02b7f832b8fdc (patch)
treeacbad702bb021448d18274e2f981587fdd918927 /src/Blocks
parentMerge pull request #1809 from flx5/master (diff)
downloadcuberite-e94886c14068eb3b9f70e4ec4ae02b7f832b8fdc.tar
cuberite-e94886c14068eb3b9f70e4ec4ae02b7f832b8fdc.tar.gz
cuberite-e94886c14068eb3b9f70e4ec4ae02b7f832b8fdc.tar.bz2
cuberite-e94886c14068eb3b9f70e4ec4ae02b7f832b8fdc.tar.lz
cuberite-e94886c14068eb3b9f70e4ec4ae02b7f832b8fdc.tar.xz
cuberite-e94886c14068eb3b9f70e4ec4ae02b7f832b8fdc.tar.zst
cuberite-e94886c14068eb3b9f70e4ec4ae02b7f832b8fdc.zip
Diffstat (limited to 'src/Blocks')
-rw-r--r--src/Blocks/BlockDirt.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Blocks/BlockDirt.h b/src/Blocks/BlockDirt.h
index 12bca92dd..cc0d845e4 100644
--- a/src/Blocks/BlockDirt.h
+++ b/src/Blocks/BlockDirt.h
@@ -69,9 +69,9 @@ public:
cFastRandom rand;
for (int i = 0; i < 2; i++) // Pick two blocks to grow to
{
- int OfsX = rand.NextInt(3, a_RelX) - 1; // [-1 .. 1]
- int OfsY = rand.NextInt(5, a_RelY) - 3; // [-3 .. 1]
- int OfsZ = rand.NextInt(3, a_RelZ) - 1; // [-1 .. 1]
+ int OfsX = rand.NextInt(3) - 1; // [-1 .. 1]
+ int OfsY = rand.NextInt(5) - 3; // [-3 .. 1]
+ int OfsZ = rand.NextInt(3) - 1; // [-1 .. 1]
BLOCKTYPE DestBlock;
NIBBLETYPE DestMeta;