mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
Recast: fix compiler warning and floor value
Value of dtCalcLinkDistance has to be floored to match Titanfall 2 values.
This commit is contained in:
parent
e57e85b88a
commit
7d5c07b2e7
@ -1739,7 +1739,7 @@ dtStatus dtNavMesh::getPolyArea(dtPolyRef ref, unsigned char* resultArea) const
|
||||
|
||||
unsigned char dtCalcLinkDistance(const float* spos, const float* epos)
|
||||
{
|
||||
return (unsigned char)rdVdist(spos, epos) / DT_TRAVERSE_DIST_QUANT_FACTOR;
|
||||
return (unsigned char)rdMathFloorf(rdVdist(spos, epos) / DT_TRAVERSE_DIST_QUANT_FACTOR);
|
||||
}
|
||||
|
||||
float dtCalcPolySurfaceArea(const dtPoly* poly, const float* verts)
|
||||
|
Loading…
x
Reference in New Issue
Block a user