version 1.14 | | version 1.15 |
---|
| | |
/* | | /* |
* static char *rcsid_anim_c = | | * static char *rcsid_anim_c = |
* "$Id: anim.c,v 1.14 2003/03/19 08:04:48 mwedel Exp $"; | | * "$Id: anim.c,v 1.15 2003/05/26 05:28:55 mwedel Exp $"; |
*/ | | */ |
| | |
/* | | /* |
CrossFire, A Multiplayer game for X-windows | | CrossFire, A Multiplayer game for X-windows |
| | |
Copyright (C) 2002 Mark Wedel & Crossfire Development Team | | Copyright (C) 2002-2003 Mark Wedel & Crossfire Development Team |
Copyright (C) 1992 Frank Tore Johansen | | Copyright (C) 1992 Frank Tore Johansen |
| | |
This program is free software; you can redistribute it and/or modify | | This program is free software; you can redistribute it and/or modify |
| | |
dump_object(op); | | dump_object(op); |
return; | | return; |
} | | } |
++op->state; /* increase draw state */ | | if (op->head) { |
| | dir=op->head->direction; |
| | |
if (op->head) dir=op->head->direction; | | if (NUM_ANIMATIONS(op) == NUM_ANIMATIONS(op->head)) |
| | op->state = op->head->state; |
| | else |
| | ++op->state; |
| | } |
| | else { |
| | ++op->state; /* increase draw state */ |
| | } |
| | |
/* If object is turning, then max animation state is half through the | | /* If object is turning, then max animation state is half through the |
* animations. Otherwise, we can use all the animations. | | * animations. Otherwise, we can use all the animations. |