--- deliantra/server/common/anim.C 2012/10/29 23:55:52 1.40 +++ deliantra/server/common/anim.C 2012/11/14 06:21:39 1.41 @@ -58,6 +58,9 @@ return anim; } +/* Tries to find the animation id that matches name. Returns an integer match + * 0 if no match found (animation 0 is initialised as the 'bug' face + */ animation & animation::find (const char *name) { @@ -75,16 +78,6 @@ anim0.faces [0] = 0; } -/* Tries to find the animation id that matches name. Returns an integer match - * 0 if no match found (animation 0 is initialised as the 'bug' face - */ -//TODO: nuke this function and replace all occurences by animations::find -int -find_animation (const char *name) -{ - return animation::find (name).number; -} - /* * animate_object(object) updates the face-variable of an object. * If the object is the head of a multi-object, all objects are animated.