… | |
… | |
139 | { |
139 | { |
140 | return strcmp (a->name, b->name); |
140 | return strcmp (a->name, b->name); |
141 | } |
141 | } |
142 | |
142 | |
143 | /* Tries to find the animation id that matches name. Returns an integer match |
143 | /* Tries to find the animation id that matches name. Returns an integer match |
144 | * 0 if no match found (animation 0 is initialized as the 'bug' face |
144 | * 0 if no match found (animation 0 is initialised as the 'bug' face |
145 | */ |
145 | */ |
146 | int |
146 | int |
147 | find_animation (const char *name) |
147 | find_animation (const char *name) |
148 | { |
148 | { |
149 | Animations |
149 | Animations |