Fix for tile cache merge polys, fix for temp obstacle handleUpdate() (call base class).
This commit is contained in:
parent
ff7fd29008
commit
98eee7e23a
@ -1370,7 +1370,7 @@ static void mergePolys(unsigned short* pa, unsigned short* pb, int ea, int eb)
|
|||||||
const int nb = countPolyVerts(pb);
|
const int nb = countPolyVerts(pb);
|
||||||
|
|
||||||
// Merge polygons.
|
// Merge polygons.
|
||||||
memset(tmp, 0xff, sizeof(unsigned short)*MAX_VERTS_PER_POLY);
|
memset(tmp, 0xff, sizeof(unsigned short)*MAX_VERTS_PER_POLY*2);
|
||||||
int n = 0;
|
int n = 0;
|
||||||
// Add pa
|
// Add pa
|
||||||
for (int i = 0; i < na-1; ++i)
|
for (int i = 0; i < na-1; ++i)
|
||||||
|
@ -1336,8 +1336,7 @@ bool Sample_TempObstacles::handleBuild()
|
|||||||
|
|
||||||
void Sample_TempObstacles::handleUpdate(const float dt)
|
void Sample_TempObstacles::handleUpdate(const float dt)
|
||||||
{
|
{
|
||||||
if (m_tool)
|
Sample::handleUpdate(dt);
|
||||||
m_tool->handleUpdate(dt);
|
|
||||||
|
|
||||||
if (!m_navMesh)
|
if (!m_navMesh)
|
||||||
return;
|
return;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user