ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/common/anim.C
(Generate patch)

Comparing deliantra/server/common/anim.C (file contents):
Revision 1.12 by root, Tue Dec 26 20:04:09 2006 UTC vs.
Revision 1.14 by pippijn, Wed Jan 3 00:21:34 2007 UTC

72 72
73 animations.push_back (anim0); 73 animations.push_back (anim0);
74 } 74 }
75 75
76 sprintf (buf, "%s/animations", settings.datadir); 76 sprintf (buf, "%s/animations", settings.datadir);
77 LOG (llevDebug, "Reading animations from %s...", buf); 77 LOG (llevDebug, "Reading animations from %s...\n", buf);
78 if ((fp = fopen (buf, "r")) == NULL) 78 if ((fp = fopen (buf, "r")) == NULL)
79 { 79 {
80 LOG (llevError, "Cannot open animations file %s: %s\n", buf, strerror (errno)); 80 LOG (llevError, "Cannot open animations file %s: %s\n", buf, strerror (errno));
81 exit (-1); 81 exit (-1);
82 } 82 }
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 */
146int 146int
147find_animation (const char *name) 147find_animation (const char *name)
148{ 148{
149 Animations 149 Animations

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines