| 536 | } |
| 537 | |
| 538 | static bool AIPathFreeDPathSlot(int slot) { |
| 539 | ASSERT(AIDynamicPath[slot].use_count >= 0); |
| 540 | ASSERT(slot >= 0 && slot < MAX_DYNAMIC_PATHS && AIDynamicPath[slot].use_count != 0); |
| 541 | |
| 542 | AIDynamicPath[slot].use_count--; |
| 543 | |
| 544 | if (!AIDynamicPath[slot].use_count) { |
| 545 | AIDynamicPath[slot].num_nodes = 0; |
| 546 | AIDynamicPath[slot].owner_handle = OBJECT_HANDLE_NONE; |
| 547 | } |
| 548 | |
| 549 | return true; |
| 550 | } |
| 551 | |
| 552 | static bool AIPathGetDPathSlot(int *slot, int handle) { |
| 553 | int i; |
no outgoing calls
no test coverage detected