| 358 | } |
| 359 | |
| 360 | void CyclePathfindingDisplay() |
| 361 | { |
| 362 | auto creatures = GetActiveCreatures(); |
| 363 | |
| 364 | if (creatures.empty()) |
| 365 | { |
| 366 | // No creatures, stay on Lara view. |
| 367 | PathfindingDisplayIndex = -1; |
| 368 | return; |
| 369 | } |
| 370 | |
| 371 | // Cycle: -1 (Lara) -> 0 -> 1 -> ... -> N-1 -> -1 (Lara). |
| 372 | PathfindingDisplayIndex++; |
| 373 | if (PathfindingDisplayIndex >= (int)creatures.size()) |
| 374 | PathfindingDisplayIndex = -1; |
| 375 | } |
| 376 | |
| 377 | void DrawPathfindingDebug(int laraBoxIndex) |
| 378 | { |
no test coverage detected