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.22 by root, Thu Apr 12 14:18:04 2007 UTC vs.
Revision 1.23 by root, Fri Apr 13 07:26:29 2007 UTC

39} 39}
40 40
41animation & 41animation &
42animation::create (const char *name, uint8 frames, uint8 facings) 42animation::create (const char *name, uint8 frames, uint8 facings)
43{ 43{
44 if (animations.size () == MAXANIMNUM)
45 cleanup ("trying to create new animation, but MAXANIMNUM animations in use.");
46
44 animations.push_back (animation ()); 47 animations.push_back (animation ());
45 animation &anim = animations.back (); 48 animation &anim = animations.back ();
46 49
47 anim.number = animations.size () - 1; 50 anim.number = animations.size () - 1;
48 anim.name = name; 51 anim.name = name;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines