version 1.55 | | version 1.56 |
---|
| | |
/* | | /* |
* static char *rcsid_main_c = | | * static char *rcsid_main_c = |
* "$Id: main.c,v 1.55 2002/01/01 23:37:55 garbled Exp $"; | | * "$Id: main.c,v 1.56 2002/01/02 06:53:23 garbled Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
it comes to the animation. If we have a value on this we don't animate it | | it comes to the animation. If we have a value on this we don't animate it |
at speed-events. */ | | at speed-events. */ |
| | |
| | if (op->anim_speed && op->last_anim >= op->anim_speed) { |
| | animate_object (op); |
| | op->last_anim = 1; |
| | } else { |
| | op->last_anim++; |
| | } |
| | |
if (op->speed_left > 0) { | | if (op->speed_left > 0) { |
--op->speed_left; | | --op->speed_left; |
process_object (op); | | process_object (op); |
| | |
continue; | | continue; |
} | | } |
| | |
if (op->anim_speed && op->last_anim >= op->anim_speed) { | | |
animate_object (op,1); | | |
| | |
/* let reset move & fight anims */ | | |
if (NUM_FACINGS(op)==25 && op->type == PLAYER) /* check for direction changing */ | | |
{ | | |
if(op->anim_moving_dir != -1) | | |
{ | | |
op->anim_last_facing = op->anim_moving_dir; | | |
op->anim_moving_dir = -1; | | |
} | | |
if(op->anim_enemy_dir != -1) | | |
{ | | |
op->anim_last_facing = op->anim_enemy_dir; | | |
op->anim_enemy_dir = -1; | | |
} | | |
} | | |
op->last_anim = 1; | | |
} else { | | |
if (NUM_FACINGS(op)==25) /* check for direction changing */ | | |
animate_object (op,0); | | |
op->last_anim++; | | |
} | | |
| | |
#ifdef CASTING_TIME | | #ifdef CASTING_TIME |
if (op->casting > 0) | | if (op->casting > 0) |
op->casting--; | | op->casting--; |