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);
|
||||
|
||||
// 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;
|
||||
// Add pa
|
||||
for (int i = 0; i < na-1; ++i)
|
||||
|
@ -1336,8 +1336,7 @@ bool Sample_TempObstacles::handleBuild()
|
||||
|
||||
void Sample_TempObstacles::handleUpdate(const float dt)
|
||||
{
|
||||
if (m_tool)
|
||||
m_tool->handleUpdate(dt);
|
||||
Sample::handleUpdate(dt);
|
||||
|
||||
if (!m_navMesh)
|
||||
return;
|
||||
|
Loading…
x
Reference in New Issue
Block a user