| 226 | } |
| 227 | |
| 228 | const dtTileCacheObstacle* dtTileCache::getObstacleByRef(dtObstacleRef ref) |
| 229 | { |
| 230 | if (!ref) |
| 231 | return 0; |
| 232 | unsigned int idx = decodeObstacleIdObstacle(ref); |
| 233 | if ((int)idx >= m_params.maxObstacles) |
| 234 | return 0; |
| 235 | const dtTileCacheObstacle* ob = &m_obstacles[idx]; |
| 236 | unsigned int salt = decodeObstacleIdSalt(ref); |
| 237 | if (ob->salt != salt) |
| 238 | return 0; |
| 239 | return ob; |
| 240 | } |
| 241 | |
| 242 | dtTileCacheMeshProcess::~dtTileCacheMeshProcess() |
| 243 | { |
no outgoing calls
no test coverage detected