version 1.27 | | version 1.28 |
---|
| | |
/* | | /* |
* static char *rcsid_button_c = | | * static char *rcsid_button_c = |
* "$Id: button.c,v 1.27 2005/09/03 20:42:01 tchize Exp $"; | | * "$Id: button.c,v 1.28 2005/09/13 06:46:35 mwedel Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
if(QUERY_FLAG(tmp, FLAG_FRIENDLY)) { | | if(QUERY_FLAG(tmp, FLAG_FRIENDLY)) { |
CLEAR_FLAG(tmp, FLAG_FRIENDLY); | | CLEAR_FLAG(tmp, FLAG_FRIENDLY); |
remove_friendly_object(tmp); | | remove_friendly_object(tmp); |
tmp->move_type = 0; | | tmp->attack_movement = 0; |
/* lots of checks here, but want to make sure we don't | | /* lots of checks here, but want to make sure we don't |
* dereference a null value | | * dereference a null value |
*/ | | */ |
| | |
tmp->stats.exp = 0; | | tmp->stats.exp = 0; |
SET_FLAG(tmp, FLAG_FRIENDLY); | | SET_FLAG(tmp, FLAG_FRIENDLY); |
add_friendly_object (tmp); | | add_friendly_object (tmp); |
tmp->move_type = PETMOVE; | | tmp->attack_movement = PETMOVE; |
break; | | break; |
| | |
default: | | default: |