| 70 | } |
| 71 | |
| 72 | bool Path_ContainsNode(const Path *p, Node *n) { |
| 73 | uint32_t pathDepth = Path_NodeCount(p); |
| 74 | EntityID nId = ENTITY_GET_ID(n); |
| 75 | for(int i = 0; i < pathDepth; i++) { |
| 76 | if(ENTITY_GET_ID(p->nodes + i) == nId) return true; |
| 77 | } |
| 78 | return false; |
| 79 | } |
| 80 | |
| 81 | Path *Path_Clone(const Path *p) { |
| 82 | Path *clone = rm_malloc(sizeof(Path)); |