--- deliantra/server/common/anim.C 2007/01/03 00:21:34 1.14 +++ deliantra/server/common/anim.C 2007/01/15 21:06:17 1.17 @@ -1,25 +1,26 @@ /* - CrossFire, A Multiplayer game for X-windows - - Copyright (C) 2002-2003 Mark Wedel & Crossfire Development Team - Copyright (C) 1992 Frank Tore Johansen - - This program is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2 of the License, or - (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software - Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. - - The authors can be reached via e-mail at -*/ + * CrossFire, A Multiplayer game for X-windows + * + * Copyright (C) 2005, 2006, 2007 Marc Lehmann & Crossfire+ Development Team + * Copyright (C) 2002-2003 Mark Wedel & Crossfire Development Team + * Copyright (C) 1992 Frank Tore Johansen + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + * + * The authors can be reached via e-mail at + */ /* This file contains animation related code. */ @@ -146,9 +147,7 @@ int find_animation (const char *name) { - Animations - search, * - match; + Animations search, *match; search.name = name; @@ -158,7 +157,9 @@ if (match) return match->num; + LOG (llevError, "Unable to find animation %s\n", name); + return 0; } @@ -171,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) { @@ -181,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; }