version 1.47 | | version 1.48 |
---|
| | |
/* | | /* |
* static char *rcsid_skill_util_c = | | * static char *rcsid_skill_util_c = |
* "$Id: skill_util.c,v 1.47 2004/04/08 06:48:51 mwedel Exp $"; | | * "$Id: skill_util.c,v 1.48 2004/06/06 16:25:40 ryo_saeba Exp $"; |
*/ | | */ |
/* | | /* |
CrossFire, A Multiplayer game for X-windows | | CrossFire, A Multiplayer game for X-windows |
| | |
| | |
int change_skill (object *who, object *new_skill, int flag) | | int change_skill (object *who, object *new_skill, int flag) |
{ | | { |
int old_range = who->contr->shoottype; | | int old_range; |
| | |
| | if ( who->type != PLAYER ) |
| | return 0; |
| | |
| | old_range = who->contr->shoottype; |
| | |
if (who->chosen_skill && who->chosen_skill == new_skill) | | if (who->chosen_skill && who->chosen_skill == new_skill) |
{ | | { |