Derp
This commit is contained in:
parent
dc39d88d3f
commit
6de0257bbe
@ -1005,7 +1005,7 @@ void cEntity::TickInVoid(cChunk & a_Chunk)
|
|||||||
void cEntity::DetectCacti()
|
void cEntity::DetectCacti()
|
||||||
{
|
{
|
||||||
int X = POSX_TOINT, Y = POSY_TOINT, Z = POSZ_TOINT;
|
int X = POSX_TOINT, Y = POSY_TOINT, Z = POSZ_TOINT;
|
||||||
float w = m_Width / 2
|
float w = m_Width / 2;
|
||||||
if (
|
if (
|
||||||
(((X + 1) - GetPosX() < w) && (GetWorld()->GetBlock(X + 1, Y, Z) == E_BLOCK_CACTUS)) ||
|
(((X + 1) - GetPosX() < w) && (GetWorld()->GetBlock(X + 1, Y, Z) == E_BLOCK_CACTUS)) ||
|
||||||
(((GetPosX() - (X - 1)) - 1 < w) && (GetWorld()->GetBlock(X - 1, Y, Z) == E_BLOCK_CACTUS)) ||
|
(((GetPosX() - (X - 1)) - 1 < w) && (GetWorld()->GetBlock(X - 1, Y, Z) == E_BLOCK_CACTUS)) ||
|
||||||
|
Loading…
Reference in New Issue
Block a user