mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
Recast: use DT_MIN_POLY_GROUP_COUNT for dtCalcTraverseTableSize
Use the actual constant instead.
This commit is contained in:
parent
5460427cda
commit
9b44b098f8
@ -191,9 +191,8 @@ int dtCalcTraverseTableCellIndex(const int numPolyGroups,
|
|||||||
|
|
||||||
int dtCalcTraverseTableSize(const int numPolyGroups)
|
int dtCalcTraverseTableSize(const int numPolyGroups)
|
||||||
{
|
{
|
||||||
// If we only have 2 poly groups, we don't need a traverse table as group
|
// If we only have 2 poly groups, we don't need a traverse table.
|
||||||
// 1 is for unlinked polygons and group 2 for linked polygons.
|
if (numPolyGroups < DT_MIN_POLY_GROUP_COUNT)
|
||||||
if (numPolyGroups <= 2)
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
return sizeof(int)*(numPolyGroups*((numPolyGroups+(RD_BITS_PER_BIT_CELL-1))/RD_BITS_PER_BIT_CELL));
|
return sizeof(int)*(numPolyGroups*((numPolyGroups+(RD_BITS_PER_BIT_CELL-1))/RD_BITS_PER_BIT_CELL));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user