version 1.9 | | version 1.10 |
---|
| | |
/* | | /* |
* static char *rcsid_button_c = | | * static char *rcsid_button_c = |
* "$Id: button.c,v 1.9 2001/01/15 22:33:32 cvs Exp $"; | | * "$Id: button.c,v 1.10 2001/02/26 00:06:21 avogl Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
update_object(tmp); | | update_object(tmp); |
break; | | break; |
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, | | |
"Nothing is written on it."); | | |
} else { | | |
(*info_map_func)(NDI_UNIQUE | NDI_NAVY,tmp->map,tmp->msg); | | (*info_map_func)(NDI_UNIQUE | NDI_NAVY,tmp->map,tmp->msg); |
| | if (tmp->stats.food) tmp->last_eat++; |
} | | } |
break; | | break; |
case ALTAR: | | case ALTAR: |