version 1.6 | | version 1.7 |
---|
| | |
/* | | /* |
* static char *rcsid_player_c = | | * static char *rcsid_player_c = |
* "$Id: player.c,v 1.6 2001/02/27 03:41:25 mwedel Exp $"; | | * "$Id: player.c,v 1.7 2001/06/29 05:59:46 mwedel Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
| | |
object *find_skill(object *op, int skillnr) { | | object *find_skill(object *op, int skillnr) { |
object *tmp, *skill1=NULL; | | object *tmp, *skill1=NULL; |
#ifdef LINKED_SKILL_LIST | | |
objectlink *obl; | | |
| | |
if(op->sk_list!=NULL) { /* use fast method */ | | |
for(obl=op->sk_list;obl;obl=obl->next) | | |
if(obl->id==skillnr&&obl->ob) return obl->ob; | | |
} | | |
#endif | | |
| | |
/* *sigh*; we didnt find it. Perhaps because the skill we requested | | /* *sigh*; we didnt find it. Perhaps because the skill we requested |
* is an unapplied tool. Lets search entire inventory */ | | * is an unapplied tool. Lets search entire inventory */ |