summaryrefslogtreecommitdiffstats
path: root/source/Chunk.cpp
diff options
context:
space:
mode:
authormgueydan <gueydan.mathieuÃ@gmail.com>2013-09-08 11:48:48 +0200
committermgueydan <gueydan.mathieuÃ@gmail.com>2013-09-08 11:49:33 +0200
commit668b6edaa7390f87b0b7e7e28ddb49c9d3f66d2a (patch)
tree5c2250ad2e3a349afcad16272be6f6f75ee4cb05 /source/Chunk.cpp
parentincrementing .gitignore : adding emacs stuff and world (diff)
downloadcuberite-668b6edaa7390f87b0b7e7e28ddb49c9d3f66d2a.tar
cuberite-668b6edaa7390f87b0b7e7e28ddb49c9d3f66d2a.tar.gz
cuberite-668b6edaa7390f87b0b7e7e28ddb49c9d3f66d2a.tar.bz2
cuberite-668b6edaa7390f87b0b7e7e28ddb49c9d3f66d2a.tar.lz
cuberite-668b6edaa7390f87b0b7e7e28ddb49c9d3f66d2a.tar.xz
cuberite-668b6edaa7390f87b0b7e7e28ddb49c9d3f66d2a.tar.zst
cuberite-668b6edaa7390f87b0b7e7e28ddb49c9d3f66d2a.zip
Diffstat (limited to 'source/Chunk.cpp')
-rw-r--r--source/Chunk.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/Chunk.cpp b/source/Chunk.cpp
index 8c4c77250..a77f10609 100644
--- a/source/Chunk.cpp
+++ b/source/Chunk.cpp
@@ -485,7 +485,7 @@ void cChunk::getThreeRandomNumber(int& a_X, int& a_Y, int& a_Z,int a_MaxX, int a
-void cChunk::getRandomBlock(int& a_X, int& a_Y, int& a_Z)
+void cChunk::getRandomBlockCoords(int& a_X, int& a_Y, int& a_Z)
{
// MG TODO : check if this kind of optimization (only one random call) is still needed
// MG TODO : if so propagate it
@@ -501,7 +501,7 @@ void cChunk::getRandomBlock(int& a_X, int& a_Y, int& a_Z)
void cChunk::SpawnMobs(cMobSpawner& a_MobSpawner)
{
int Center_X,Center_Y,Center_Z;
- getRandomBlock(Center_X,Center_Y,Center_Z);
+ getRandomBlockCoords(Center_X,Center_Y,Center_Z);
BLOCKTYPE PackCenterBlock = GetBlock(Center_X, Center_Y, Center_Z);
if (a_MobSpawner.CheckPackCenter(PackCenterBlock))