From 1e1e15dd3ab111383b27f09f70eb590878254e00 Mon Sep 17 00:00:00 2001 From: Eugenio Favalli Date: Fri, 8 Oct 2004 14:01:51 +0000 Subject: *** empty log message *** --- src/being.cpp | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'src/being.cpp') diff --git a/src/being.cpp b/src/being.cpp index c2e93ca1..0c15918e 100644 --- a/src/being.cpp +++ b/src/being.cpp @@ -19,6 +19,8 @@ along with The Mana World; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + By ElvenProgrammer aka Eugenio Favalli (umperio@users.sourceforge.net) + */ #include @@ -208,3 +210,17 @@ void sort() { } } } + +/** Remove all path nodes from a being */ +void empty_path(NODE *node) { + if(node) { + PATH_NODE *temp = node->path; + PATH_NODE *next; + while(temp) { + next = temp->next; + free(temp); + temp = next; + } + node->path = NULL; + } +} -- cgit v1.2.3-60-g2f50