version 1.17 | | version 1.18 |
---|
| | |
/* | | /* |
* static char *rcsid_player_c = | | * static char *rcsid_player_c = |
* "$Id: player.c,v 1.17 2005/10/28 18:19:53 akirschbaum Exp $"; | | * "$Id: player.c,v 1.18 2006/02/09 00:48:36 akirschbaum Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
* returns true if the adressed object 'ob' is a player | | * returns true if the adressed object 'ob' is a player |
* of the dragon race. | | * of the dragon race. |
*/ | | */ |
int is_dragon_pl(object* op) { | | int is_dragon_pl(const object* op) { |
if (op != NULL && op->type == PLAYER && op->arch != NULL | | if (op != NULL && op->type == PLAYER && op->arch != NULL |
&& op->arch->clone.race != NULL && | | && op->arch->clone.race != NULL && |
strcmp(op->arch->clone.race, "dragon")==0) | | strcmp(op->arch->clone.race, "dragon")==0) |