64bit fixes for address calcs.
This commit is contained in:
parent
e6b1d141d2
commit
a12afd675f
@ -1194,7 +1194,7 @@ dtStatus dtNavMesh::removeTile(dtTileRef ref, unsigned char** data, int* dataSiz
|
|||||||
dtTileRef dtNavMesh::getTileRef(const dtMeshTile* tile) const
|
dtTileRef dtNavMesh::getTileRef(const dtMeshTile* tile) const
|
||||||
{
|
{
|
||||||
if (!tile) return 0;
|
if (!tile) return 0;
|
||||||
const unsigned int it = tile - m_tiles;
|
const unsigned int it = (unsigned int)(tile - m_tiles);
|
||||||
return (dtTileRef)encodePolyId(tile->salt, it, 0);
|
return (dtTileRef)encodePolyId(tile->salt, it, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1215,7 +1215,7 @@ dtTileRef dtNavMesh::getTileRef(const dtMeshTile* tile) const
|
|||||||
dtPolyRef dtNavMesh::getPolyRefBase(const dtMeshTile* tile) const
|
dtPolyRef dtNavMesh::getPolyRefBase(const dtMeshTile* tile) const
|
||||||
{
|
{
|
||||||
if (!tile) return 0;
|
if (!tile) return 0;
|
||||||
const unsigned int it = tile - m_tiles;
|
const unsigned int it = (unsigned int)(tile - m_tiles);
|
||||||
return encodePolyId(tile->salt, it, 0);
|
return encodePolyId(tile->salt, it, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user