version 1.25 | | version 1.26 |
---|
| | |
/* | | /* |
* static char *rcsid_button_c = | | * static char *rcsid_button_c = |
* "$Id: button.c,v 1.25 2005/07/14 09:18:53 akirschbaum Exp $"; | | * "$Id: button.c,v 1.26 2005/07/15 13:51:48 ryo_saeba Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
| | |
case SIGN: | | case SIGN: |
if (!tmp->stats.food || tmp->last_eat < tmp->stats.food) { | | if (!tmp->stats.food || tmp->last_eat < tmp->stats.food) { |
(*info_map_func)(NDI_UNIQUE | NDI_NAVY,tmp->map,tmp->msg); | | new_info_map(NDI_UNIQUE | NDI_NAVY,tmp->map,tmp->msg); |
if (tmp->stats.food) tmp->last_eat++; | | if (tmp->stats.food) tmp->last_eat++; |
} | | } |
break; | | break; |
| | |
| | |
case DIRECTOR: | | case DIRECTOR: |
case FIREWALL: | | case FIREWALL: |
if(!QUERY_FLAG(tmp,FLAG_ANIMATE)&&tmp->type==FIREWALL) (*move_firewall_func)(tmp); | | if(!QUERY_FLAG(tmp,FLAG_ANIMATE)&&tmp->type==FIREWALL) move_firewall(tmp); |
else { | | 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; |
| | |
break; | | break; |
| | |
case TELEPORTER: | | case TELEPORTER: |
(*move_teleporter_func)(tmp); | | move_teleporter(tmp); |
break; | | break; |
| | |
case CREATOR: | | case CREATOR: |
(*move_creator_func)(tmp); | | move_creator(tmp); |
break; | | break; |
| | |
case TRIGGER_MARKER: | | case TRIGGER_MARKER: |
(*move_trigger_marker_func)(tmp); | | move_marker(tmp); |
break; | | break; |
| | |
case DUPLICATOR: | | case DUPLICATOR: |
(*move_duplicator_func)(tmp); | | move_duplicator(tmp); |
break; | | break; |
} | | } |
} | | } |
| | |
*sacrifice = decrease_ob_nr (*sacrifice, NROF_SACRIFICE(altar)); | | *sacrifice = decrease_ob_nr (*sacrifice, NROF_SACRIFICE(altar)); |
| | |
if (altar->msg) | | if (altar->msg) |
(*info_map_func) (NDI_BLACK, altar->map, altar->msg); | | new_info_map(NDI_BLACK, altar->map, altar->msg); |
return 1; | | return 1; |
} | | } |
| | |