mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
Recast: remove unused and incorrect code
Should no longer be used as tiles are now built correctly after the change in a2d5d52dc4e571388b9b86f21e40a5110a69665e
This commit is contained in:
parent
02aa7acd4a
commit
7c90262829
@ -1085,23 +1085,12 @@ const dtMeshTile* dtNavMesh::getTileAt(const int x, const int y, const int layer
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
#define FLIP_NEIGHBOURS 0
|
||||
|
||||
int dtNavMesh::getNeighbourTilesAt(const int x, const int y, const int side, dtMeshTile** tiles, const int maxTiles) const
|
||||
{
|
||||
int nx = x, ny = y;
|
||||
switch (side)
|
||||
{
|
||||
#if FLIP_NEIGHBOURS
|
||||
case 0: nx--; break;
|
||||
case 1: nx--; ny++; break;
|
||||
case 2: ny++; break;
|
||||
case 3: nx++; ny++; break;
|
||||
case 4: nx++; break;
|
||||
case 5: nx++; ny--; break;
|
||||
case 6: ny--; break;
|
||||
case 7: nx--; ny--; break;
|
||||
#else
|
||||
|
||||
{
|
||||
case 0: nx++; break;
|
||||
case 1: nx++; ny++; break;
|
||||
case 2: ny++; break;
|
||||
@ -1110,7 +1099,6 @@ int dtNavMesh::getNeighbourTilesAt(const int x, const int y, const int side, dtM
|
||||
case 5: nx--; ny--; break;
|
||||
case 6: ny--; break;
|
||||
case 7: nx++; ny--; break;
|
||||
#endif
|
||||
};
|
||||
|
||||
return getTilesAt(nx, ny, tiles, maxTiles);
|
||||
|
Loading…
x
Reference in New Issue
Block a user