1 | /* |
1 | /* |
2 | * static char *rcsid_anim_c = |
2 | * static char *rcsid_anim_c = |
3 | * "$Id: anim.c,v 1.1.1.2 2006/02/22 18:01:17 elmex Exp $"; |
3 | * "$Id: anim.c,v 1.2 2006/08/13 17:16:00 elmex dead $"; |
4 | */ |
4 | */ |
5 | |
5 | |
6 | /* |
6 | /* |
7 | CrossFire, A Multiplayer game for X-windows |
7 | CrossFire, A Multiplayer game for X-windows |
8 | |
8 | |
… | |
… | |
115 | } |
115 | } |
116 | fclose(fp); |
116 | fclose(fp); |
117 | LOG(llevDebug,"done. got (%d)\n", num_animations); |
117 | LOG(llevDebug,"done. got (%d)\n", num_animations); |
118 | } |
118 | } |
119 | |
119 | |
120 | static int anim_compare(const Animations *a, const Animations *b) { |
120 | static int anim_compare(Animations *a, Animations *b) { |
121 | return strcmp(a->name, b->name); |
121 | return strcmp(a->name, b->name); |
122 | } |
122 | } |
123 | |
123 | |
124 | /* Tries to find the animation id that matches name. Returns an integer match |
124 | /* Tries to find the animation id that matches name. Returns an integer match |
125 | * 0 if no match found (animation 0 is initialized as the 'bug' face |
125 | * 0 if no match found (animation 0 is initialized as the 'bug' face |