1
0
Fork 0

Fixed datatype conversion warning.

This commit is contained in:
Mattes D 2014-05-23 12:33:30 +02:00
parent f03cbb5e04
commit 941cb88ae4
1 changed files with 2 additions and 2 deletions

View File

@ -1018,10 +1018,10 @@ void cEntity::TickInVoid(cChunk & a_Chunk)
void cEntity::DetectCacti()
void cEntity::DetectCacti(void)
{
int X = POSX_TOINT, Y = POSY_TOINT, Z = POSZ_TOINT;
float w = m_Width / 2;
double w = m_Width / 2;
if (
(((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)) ||