version 1.15 | | version 1.16 |
---|
| | |
/* | | /* |
* static char *rcsid_c_range_c = | | * static char *rcsid_c_range_c = |
* "$Id: c_range.c,v 1.15 2006/01/10 16:32:44 cavesomething Exp $"; | | * "$Id: c_range.c,v 1.16 2006/06/05 06:28:56 mwedel Exp $"; |
*/ | | */ |
| | |
/* | | /* |
CrossFire, A Multiplayer game for X-windows | | CrossFire, A Multiplayer game for X-windows |
| | |
Copyright (C) 2002 Mark Wedel & Crossfire Development Team | | Copyright (C) 2006 Mark Wedel & Crossfire Development Team |
Copyright (C) 1992 Frank Tore Johansen | | Copyright (C) 1992 Frank Tore Johansen |
| | |
This program is free software; you can redistribute it and/or modify | | This program is free software; you can redistribute it and/or modify |
| | |
| | |
if(params!=NULL) { | | if(params!=NULL) { |
int spellnumber = 0; | | int spellnumber = 0; |
if (spellnumber = atoi(params)) | | if ((spellnumber = atoi(params))!=0) |
for (spob = op->inv; spob && spob->count != spellnumber; spob=spob->below); | | for (spob = op->inv; spob && spob->count != spellnumber; spob=spob->below); |
else spob = lookup_spell_by_name(op, params); | | else spob = lookup_spell_by_name(op, params); |
| | |