| 627 | } |
| 628 | |
| 629 | static bool AIPathAddStaticPath(ai_path_info *aip, int path_id, int start_index, int end_index) { |
| 630 | // chrishack -- validation code is needed |
| 631 | |
| 632 | if (aip->num_paths >= MAX_JOINED_PATHS) { |
| 633 | mprintf(0, "AI ERROR: Tried to join too many paths (Adding spath)\n"); |
| 634 | return false; |
| 635 | } |
| 636 | |
| 637 | aip->path_id[aip->num_paths] = path_id; |
| 638 | aip->path_type[aip->num_paths] = AIP_STATIC; |
| 639 | aip->path_start_node[aip->num_paths] = start_index; |
| 640 | aip->path_end_node[aip->num_paths] = end_index; |
| 641 | |
| 642 | aip->num_paths++; |
| 643 | |
| 644 | return true; |
| 645 | } |
| 646 | |
| 647 | static inline bool AIPathAddDPathNode(ai_path_info *aip, int *slot, int *cur_node, vector *pos, int room, int handle) { |
| 648 | int status; |
no outgoing calls
no test coverage detected