version 1.4 | | version 1.5 |
---|
| | |
/* | | /* |
* static char *rcsid_button_c = | | * static char *rcsid_button_c = |
* "$Id: button.c,v 1.4 2000/06/08 16:08:41 jec Exp $"; | | * "$Id: button.c,v 1.5 2000/06/16 06:06:33 cvs Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
break; | | break; |
case DIRECTOR: | | case DIRECTOR: |
case FIREWALL: | | case FIREWALL: |
| | if(!QUERY_FLAG(tmp,FLAG_ANIMATE)&&tmp->type==FIREWALL) (*move_firewall_func)(tmp); |
| | else { |
if ((tmp->stats.sp += tmp->stats.maxsp) > 8) /* next direction */ | | if ((tmp->stats.sp += tmp->stats.maxsp) > 8) /* next direction */ |
tmp->stats.sp = ((tmp->stats.sp-1)%8)+1; | | tmp->stats.sp = ((tmp->stats.sp-1)%8)+1; |
animate_turning(tmp); | | animate_turning(tmp); |
| | } |
break; | | break; |
case TELEPORTER: | | case TELEPORTER: |
(*move_teleporter_func)(tmp); | | (*move_teleporter_func)(tmp); |