Fix for tile cache merge polys, fix for temp obstacle handleUpdate() (call base class).

This commit is contained in:
Mikko Mononen 2012-02-07 16:04:08 +00:00
parent ff7fd29008
commit 98eee7e23a
2 changed files with 2 additions and 3 deletions

View File

@ -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)

View File

@ -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;