version 1.84 | | version 1.85 |
---|
| | |
/* | | /* |
* static char *rcsid_init_c = | | * static char *rcsid_init_c = |
* "$Id: request.c,v 1.84 2006/02/20 18:43:24 cavesomething Exp $"; | | * "$Id: request.c,v 1.85 2006/02/20 23:35:31 cavesomething Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
| | |
/* appends the spell *spell to the Socklist we will send the data to. */ | | /* appends the spell *spell to the Socklist we will send the data to. */ |
static void append_spell (player *pl, SockList *sl, object *spell) { | | static void append_spell (player *pl, SockList *sl, object *spell) { |
int len, i=0, skill=-CS_STAT_SKILLINFO; | | int len, i, skill=0; |
/* we set skill to that value so that in the null case, the value sent is zero */ | | |
| | |
if (!(spell->name)) { | | if (!(spell->name)) { |
LOG(llevError, "item number %d is a spell with no name.\n", spell->count); | | LOG(llevError, "item number %d is a spell with no name.\n", spell->count); |
| | |
break; | | break; |
} | | } |
} | | } |
skill = i+CS_STAT_SKILLINFO; | | |
SockList_AddChar(sl, skill); | | SockList_AddChar(sl, skill); |
| | |
SockList_AddInt(sl, spell->path_attuned); | | SockList_AddInt(sl, spell->path_attuned); |