mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
Recast: fix variable name (XZY -> XYZ)
This commit is contained in:
parent
dfa5996ce1
commit
4605fcf227
@ -65,11 +65,11 @@ void rcFilterLedgeSpans(rcContext* context, const int walkableHeight, const int
|
||||
rcScopedTimer timer(context, RC_TIMER_FILTER_BORDER);
|
||||
|
||||
const int xSize = heightfield.width;
|
||||
const int zSize = heightfield.height;
|
||||
const int ySize = heightfield.height;
|
||||
const int MAX_HEIGHT = 0xffff; // TODO (graham): Move this to a more visible constant and update usages.
|
||||
|
||||
// Mark border spans.
|
||||
for (int y = 0; y < zSize; ++y)
|
||||
for (int y = 0; y < ySize; ++y)
|
||||
{
|
||||
for (int x = 0; x < xSize; ++x)
|
||||
{
|
||||
@ -96,7 +96,7 @@ void rcFilterLedgeSpans(rcContext* context, const int walkableHeight, const int
|
||||
int dx = x + rcGetDirOffsetX(direction);
|
||||
int dy = y + rcGetDirOffsetY(direction);
|
||||
// Skip neighbours which are out of bounds.
|
||||
if (dx < 0 || dy < 0 || dx >= xSize || dy >= zSize)
|
||||
if (dx < 0 || dy < 0 || dx >= xSize || dy >= ySize)
|
||||
{
|
||||
minNeighborHeight = rdMin(minNeighborHeight, -walkableClimb - bot);
|
||||
continue;
|
||||
|
Loading…
x
Reference in New Issue
Block a user