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.23 by root, Fri Apr 13 07:26:29 2007 UTC vs.
Revision 1.24 by root, Thu May 17 21:32:08 2007 UTC

1/* 1/*
2 * CrossFire, A Multiplayer game for X-windows 2 * CrossFire, A Multiplayer game
3 * 3 *
4 * Copyright (C) 2005, 2006, 2007 Marc Lehmann & Crossfire+ Development Team 4 * Copyright (C) 2005, 2006, 2007 Marc Lehmann & Crossfire+ Development Team
5 * Copyright (C) 2002-2003 Mark Wedel & Crossfire Development Team 5 * Copyright (C) 2002-2003 Mark Wedel & Crossfire Development Team
6 * Copyright (C) 1992 Frank Tore Johansen 6 * Copyright (C) 1992 Frank Tore Johansen
7 * 7 *
105 LOG (llevError, "Object %s lacks animation.\n", op->debug_desc ()); 105 LOG (llevError, "Object %s lacks animation.\n", op->debug_desc ());
106 CLEAR_FLAG (op, FLAG_ANIMATE); 106 CLEAR_FLAG (op, FLAG_ANIMATE);
107 return; 107 return;
108 } 108 }
109 109
110 if (op->head) 110 if (op->head_ () != op)
111 { 111 {
112 dir = op->head->direction; 112 dir = op->head->direction;
113 113
114 if (NUM_ANIMATIONS (op) == NUM_ANIMATIONS (op->head)) 114 if (NUM_ANIMATIONS (op) == NUM_ANIMATIONS (op->head))
115 op->state = op->head->state; 115 op->state = op->head->state;
186 186
187 /* update_object will also recursively update all the pieces. 187 /* update_object will also recursively update all the pieces.
188 * as such, we call it last, and only call it for the head 188 * as such, we call it last, and only call it for the head
189 * piece, and not for the other tail pieces. 189 * piece, and not for the other tail pieces.
190 */ 190 */
191 if (!op->head) 191 if (op->head_ () == op)
192 update_object (op, UP_OBJ_FACE); 192 update_object (op, UP_OBJ_FACE);
193} 193}
194 194

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines