version 1.21 | | version 1.22 |
---|
| | |
/* | | /* |
* static char *rcsid_anim_c = | | * static char *rcsid_anim_c = |
* "$Id: anim.c,v 1.21 2006/02/09 00:48:36 akirschbaum Exp $"; | | * "$Id: anim.c,v 1.22 2006/03/18 15:05:31 ryo_saeba Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
} | | } |
| | |
} else { | | } else { |
if (!(faces[num_frames++] = FindFace(buf,0))) | | if (!(faces[num_frames++] = find_face(buf,0))) |
LOG(llevDebug,"Could not find face %s for animation %s\n", | | LOG(llevDebug,"Could not find face %s for animation %s\n", |
buf, animations[num_animations].name); | | buf, animations[num_animations].name); |
} | | } |
| | |
return strcmp(a->name, b->name); | | return strcmp(a->name, b->name); |
} | | } |
| | |
/* Tries to find the animation id that matches name. Returns an integer match | | /** |
| | * Tries to find the animation id that matches name. Returns an integer match |
* 0 if no match found (animation 0 is initialized as the 'bug' face | | * 0 if no match found (animation 0 is initialized as the 'bug' face |
*/ | | */ |
int find_animation(const char *name) | | int find_animation(const char *name) |
| | |
return 0; | | return 0; |
} | | } |
| | |
/* | | /** |
* animate_object(object) updates the face-variable of an object. | | * animate_object(object) updates the face-variable of an object. |
* If the object is the head of a multi-object, all objects are animated. | | * If the object is the head of a multi-object, all objects are animated. |
* op is the object to animate. | | * op is the object to animate. |