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.11 by root, Wed Dec 13 21:27:09 2006 UTC vs.
Revision 1.13 by pippijn, Tue Jan 2 23:39:21 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 }
173 */ 173 */
174 174
175void 175void
176animate_object (object *op, int dir) 176animate_object (object *op, int dir)
177{ 177{
178 int
179 max_state; /* Max animation state object should be drawn in */ 178 int max_state; /* Max animation state object should be drawn in */
180 int
181 base_state; /* starting index # to draw from */ 179 int base_state; /* starting index # to draw from */
182 180
183 if (!op->animation_id || !NUM_ANIMATIONS (op)) 181 if (!op->animation_id || !NUM_ANIMATIONS (op))
184 { 182 {
185 LOG (llevError, "Object %s lacks animation.\n", op->debug_desc ()); 183 LOG (llevError, "Object %s lacks animation.\n", op->debug_desc ());
186 return; 184 return;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines