version 1.35 | | version 1.36 |
---|
| | |
/* | | /* |
* static char *rcsid_pets_c = | | * static char *rcsid_pets_c = |
* "$Id: pets.c,v 1.35 2005/09/13 06:46:35 mwedel Exp $"; | | * "$Id: pets.c,v 1.36 2005/09/24 09:49:49 ryo_saeba Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
if (target->type != PLAYER) { | | if (target->type != PLAYER) { |
/* if the target is owned by a player make sure than make sure | | /* if the target is owned by a player make sure than make sure |
it's not in the same party */ | | it's not in the same party */ |
if ((towner->type == PLAYER) && (rowner->contr->party_number > 0)) { | | if ((towner->type == PLAYER) && (rowner->contr->party != NULL)) { |
if (rowner->contr->party_number == towner->contr->party_number) return 0; | | if (rowner->contr->party == towner->contr->party) return 0; |
} | | } |
} else { | | } else { |
/* if the target is a player make sure than make sure it's not | | /* if the target is a player make sure than make sure it's not |
in the same party */ | | in the same party */ |
if (rowner->contr->party_number > 0){ | | if (rowner->contr->party != NULL){ |
if (rowner->contr->party_number == target->contr->party_number) return 0; | | if (rowner->contr->party == target->contr->party) return 0; |
} | | } |
} | | } |
| | |