swordlegend / recastnavigation

Automatically exported from code.google.com/p/recastnavigation
zlib License
0 stars 0 forks source link

Rebuild tiles removed incorrectly #201

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
From JimJimTheJimmyMan on google groups:

> Where ever you find this in your code, you might want to take a second
> look at it:
>
> dtTileCache::buildNavMeshTile()
>
>        if (navData)
>        {
>               
 navmesh->removeTile(navmesh->getTileRefAt(tile->header->tx,tile-
>>header->ty,tile->header->tlayer),0,0);
>                // Let the navmesh own the data.
>                status = 
navmesh->addTile(navData,navDataSize,DT_TILE_FREE_DATA,
> 0,0);
>                if (dtStatusFailed(status))
>                {
>                        dtFree(navData);
>                        return status;
>                }
>        }
>
>
> Sample_TileMesh::buildTile()
>
>        if (data)
>        {
>                // Remove any previous data (navmesh owns and deletes 
the data).
>               
 m_navMesh->removeTile(m_navMesh->getTileRefAt(tx,ty,0),0,0);
>
>                // Let the navmesh own the data.
>                dtStatus status = 
m_navMesh->addTile(data,dataSize,DT_TILE_FREE_DATA,
> 0,0);
>                if (dtStatusFailed(status))
>                        dtFree(data);
>        }
>

Original issue reported on code.google.com by memono...@gmail.com on 1 May 2012 at 6:11

GoogleCodeExporter commented 9 years ago
fixed in 340

Original comment by memono...@gmail.com on 19 May 2012 at 9:27