version 1.70 | | version 1.71 |
---|
| | |
/* | | /* |
* static char *rcsid_map_c = | | * static char *rcsid_map_c = |
* "$Id: map.c,v 1.70 2005/03/06 20:38:52 akirschbaum Exp $"; | | * "$Id: map.c,v 1.71 2005/03/15 21:06:19 ryo_saeba Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
m->fixed_resettime = atoi(value); | | m->fixed_resettime = atoi(value); |
} else if (!strcmp(key,"unique")) { | | } else if (!strcmp(key,"unique")) { |
m->unique = atoi(value); | | m->unique = atoi(value); |
| | } else if (!strcmp(key,"region")) { |
| | m->region = get_region_by_name(value); |
} else if (!strcmp(key,"outdoor")) { | | } else if (!strcmp(key,"outdoor")) { |
m->outdoor = atoi(value); | | m->outdoor = atoi(value); |
} else if (!strcmp(key, "temp")) { | | } else if (!strcmp(key, "temp")) { |
| | |
* or a difficulty value we generated when the map was first loaded | | * or a difficulty value we generated when the map was first loaded |
*/ | | */ |
if (m->difficulty) fprintf(fp,"difficulty %d\n", m->difficulty); | | if (m->difficulty) fprintf(fp,"difficulty %d\n", m->difficulty); |
| | if (m->region) fprintf(fp,"region %d\n", m->region); |
if (m->darkness) fprintf(fp,"darkness %d\n", m->darkness); | | if (m->darkness) fprintf(fp,"darkness %d\n", m->darkness); |
if (m->width) fprintf(fp,"width %d\n", m->width); | | if (m->width) fprintf(fp,"width %d\n", m->width); |
if (m->height) fprintf(fp,"height %d\n", m->height); | | if (m->height) fprintf(fp,"height %d\n", m->height); |