version 1.22 | | version 1.23 |
---|
| | |
/* | | /* |
* static char *rcsid_skills_c = | | * static char *rcsid_skills_c = |
* "$Id: skills.c,v 1.22 2001/10/15 21:12:08 garbled Exp $"; | | * "$Id: skills.c,v 1.23 2002/01/25 10:53:37 gros Exp $"; |
*/ | | */ |
/* | | /* |
CrossFire, A Multiplayer game for X-windows | | CrossFire, A Multiplayer game for X-windows |
| | |
/* if skill name occurs at begining of the string | | /* if skill name occurs at begining of the string |
* we have to reset pointer to miss it and trailing space(s) | | * we have to reset pointer to miss it and trailing space(s) |
*/ | | */ |
if(lookup_skill_by_name(params)>=0){ | | /* |
| | * GROS: Bugfix here. if you type |
| | * use_skill inscription bla |
| | * params will contain "bla" only, so looking for the skill name |
| | * shouldn't be done anymore. |
| | */ |
| | /* if(lookup_skill_by_name(params)>=0){ |
for(i=strcspn(string," ");i>0;i--) string++; | | for(i=strcspn(string," ");i>0;i--) string++; |
for(i=strspn(string," ");i>0;i--) string++; | | for(i=strspn(string," ");i>0;i--) string++; |
} | | } |
| | */ |
/* if there is a message then it goes in a book and no message means | | /* if there is a message then it goes in a book and no message means |
* write active spell into the scroll | | * write active spell into the scroll |
*/ | | */ |