--- deliantra/server/common/anim.C 2006/09/14 22:33:58 1.10 +++ deliantra/server/common/anim.C 2006/12/26 20:04:09 1.12 @@ -26,8 +26,6 @@ #include #include -std::vector animations; - void free_all_anim (void) { @@ -68,7 +66,7 @@ anim0.name = "###none"; anim0.num_animations = 1; - anim0.faces = (Fontindex *) malloc (sizeof (Fontindex)); + anim0.faces = (uint16 *)malloc (sizeof (uint16)); anim0.faces[0] = 0; anim0.facings = 0; @@ -106,7 +104,7 @@ } else if (!strncmp (buf, "mina", 4)) { - animations[num_animations].faces = (Fontindex *) malloc (sizeof (Fontindex) * num_frames); + animations[num_animations].faces = (uint16 *) malloc (sizeof (uint16) * num_frames); for (i = 0; i < num_frames; i++) animations[num_animations].faces[i] = faces[i]; animations[num_animations].num_animations = num_frames; @@ -177,10 +175,8 @@ void animate_object (object *op, int dir) { - int - max_state; /* Max animation state object should be drawn in */ - int - base_state; /* starting index # to draw from */ + int max_state; /* Max animation state object should be drawn in */ + int base_state; /* starting index # to draw from */ if (!op->animation_id || !NUM_ANIMATIONS (op)) {