--- deliantra/server/common/anim.C 2007/01/06 14:42:28 1.15 +++ deliantra/server/common/anim.C 2007/01/14 23:15:57 1.16 @@ -147,9 +147,7 @@ int find_animation (const char *name) { - Animations - search, * - match; + Animations search, *match; search.name = name; @@ -159,7 +157,9 @@ if (match) return match->num; + LOG (llevError, "Unable to find animation %s\n", name); + return 0; } @@ -172,7 +172,6 @@ * caller has a better idea which one it really wants to be using, * so let it pass along the right one. */ - void animate_object (object *op, int dir) { @@ -182,6 +181,7 @@ if (!op->animation_id || !NUM_ANIMATIONS (op)) { LOG (llevError, "Object %s lacks animation.\n", op->debug_desc ()); + CLEAR_FLAG (op, FLAG_ANIMATE); return; }