version 1.46 | | version 1.47 |
---|
| | |
/* | | /* |
* static char *rcsid_init_c = | | * static char *rcsid_init_c = |
* "$Id: init.c,v 1.46 2003/02/09 07:30:49 garbled Exp $"; | | * "$Id: init.c,v 1.47 2003/02/14 05:57:57 garbled Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
} | | } |
if ((next=strchr(cp,',')) != NULL) | | if ((next=strchr(cp,',')) != NULL) |
*(next++) = '\0'; | | *(next++) = '\0'; |
sscanf(cp, "%hd", &mt->save[i]); | | sscanf(cp, "%d", &value); |
| | mt->save[i] = (sint8)value; |
cp = next; | | cp = next; |
} | | } |
} else if (!strncmp(cp, "mods", 4)) { | | } else if (!strncmp(cp, "mods", 4)) { |
| | |
} | | } |
if ((next=strchr(cp,',')) != NULL) | | if ((next=strchr(cp,',')) != NULL) |
*(next++) = '\0'; | | *(next++) = '\0'; |
sscanf(cp, "%hd", &mt->mod[i]); | | sscanf(cp, "%d", &value); |
| | mt->mod[i] = (sint8)value; |
cp = next; | | cp = next; |
} | | } |
} else if (sscanf(cp, "chance %d\n", &value)) { | | } else if (sscanf(cp, "chance %d\n", &value)) { |