1
0
Fork 0

NetherPortalScanner: Fixed type conversion warnings.

This commit is contained in:
Mattes D 2015-06-13 08:46:05 +02:00
parent ee3082a3c5
commit f0ee0b8ce8
1 changed files with 2 additions and 2 deletions

View File

@ -109,9 +109,9 @@ bool cNetherPortalScanner::OnAllChunksAvailable(void)
// Find the bottom of this portal // Find the bottom of this portal
while (m_World->GetBlock(m_PortalLoc.x, m_PortalLoc.y, m_PortalLoc.z) == E_BLOCK_NETHER_PORTAL) while (m_World->GetBlock(m_PortalLoc.x, m_PortalLoc.y, m_PortalLoc.z) == E_BLOCK_NETHER_PORTAL)
{ {
m_PortalLoc.y -= 1.0; m_PortalLoc.y -= 1;
} }
m_PortalLoc.y += 1.0; m_PortalLoc.y += 1;
// Figure out which way the portal is facing // Figure out which way the portal is facing
int BXP = m_World->GetBlock(m_PortalLoc.x + 1, m_PortalLoc.y, m_PortalLoc.z); int BXP = m_World->GetBlock(m_PortalLoc.x + 1, m_PortalLoc.y, m_PortalLoc.z);