version 1.3 | | version 1.4 |
---|
| | |
/* | | /* |
* static char *rcsid_button_c = | | * static char *rcsid_button_c = |
* "$Id: button.c,v 1.3 2000/05/26 09:50:45 jec Exp $"; | | * "$Id: button.c,v 1.4 2000/06/08 16:08:41 jec Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
tmp2->type!=PLAYER;tmp2=tmp2->above) | | tmp2->type!=PLAYER;tmp2=tmp2->above) |
if(tmp2->above==NULL) break; | | if(tmp2->above==NULL) break; |
| | |
| | if (tmp2->type != PLAYER) |
| | break; |
set_owner(tmp,tmp2); | | set_owner(tmp,tmp2); |
SET_FLAG(tmp,FLAG_MONSTER); | | SET_FLAG(tmp,FLAG_MONSTER); |
tmp->stats.exp = 0; | | tmp->stats.exp = 0; |
SET_FLAG(tmp, FLAG_FRIENDLY); | | SET_FLAG(tmp, FLAG_FRIENDLY); |
| | add_friendly_object (tmp); |
tmp->move_type = PETMOVE; | | tmp->move_type = PETMOVE; |
break; | | break; |
| | |