swordlegend / recastnavigation

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

Use typedef for node pool index type #150

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
This is not an issue, more an enhancement.
The 'm_first' and 'm_next' fields in dtNodePool are normally unsigned shorts. 
Some users of Recast that have very large worlds need to use more than 65535 
nodes, so they have to change the type to unsigned int. If possible, can you 
use a typedef for this?
Thanks!

Original issue reported on code.google.com by Jakob.Bo...@gmail.com on 28 Nov 2010 at 8:30

GoogleCodeExporter commented 9 years ago
Yes, that can be done.

Original comment by memono...@gmail.com on 28 Nov 2010 at 8:50

GoogleCodeExporter commented 9 years ago
The attached patch does just that. Confirmed working on a findPath that would 
fail with a maxNodes of 2^16.

Original comment by caytc...@gmail.com on 6 Dec 2010 at 11:53

Attachments:

GoogleCodeExporter commented 9 years ago
Sorry for the slow response. This is now fixed in R271.

Original comment by memono...@gmail.com on 3 Feb 2011 at 9:50