| 375 | } |
| 376 | |
| 377 | void DrawPathfindingDebug(int laraBoxIndex) |
| 378 | { |
| 379 | auto creatures = GetActiveCreatures(); |
| 380 | |
| 381 | if (PathfindingDisplayIndex < 0 || creatures.empty()) |
| 382 | { |
| 383 | // Show Lara's nearby boxes. |
| 384 | DrawLaraPathfinding(laraBoxIndex); |
| 385 | } |
| 386 | else |
| 387 | { |
| 388 | // Show selected creature's pathfinding. |
| 389 | int creatureIndex = PathfindingDisplayIndex; |
| 390 | if (creatureIndex >= (int)creatures.size()) |
| 391 | creatureIndex = 0; |
| 392 | |
| 393 | DrawItemPathfinding(creatures[creatureIndex]); |
| 394 | } |
| 395 | } |
| 396 | |
| 397 | bool MoveCreature3DPos(Pose* fromPose, Pose* toPose, int velocity, short angleDif, int angleAdd) |
| 398 | { |
no test coverage detected