1
0

renaming the cChunk::getRandomBlock method + removing a buggy working log

This commit is contained in:
mgueydan
2013-09-08 11:48:48 +02:00
parent 1d987d4e90
commit 668b6edaa7
3 changed files with 3 additions and 6 deletions

View File

@@ -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))