mirror of
https://github.com/recastnavigation/recastnavigation.git
synced 2026-09-29 13:36:22 +00:00
Added RC_NOT_CONNECTED which is used to check the return value of rcGetCon()
This commit is contained in:
@@ -803,7 +803,7 @@ static void getHeightData(const rcCompactHeightfield& chf,
|
||||
|
||||
for (int dir = 0; dir < 4; ++dir)
|
||||
{
|
||||
if (rcGetCon(cs, dir) == 0xf) continue;
|
||||
if (rcGetCon(cs, dir) == RC_NOT_CONNECTED) continue;
|
||||
|
||||
const int ax = cx + rcGetDirOffsetX(dir);
|
||||
const int ay = cy + rcGetDirOffsetY(dir);
|
||||
|
||||
Reference in New Issue
Block a user