version 1.11 | | version 1.12 |
---|
| | |
/* | | /* |
* static char *rcsid_map_c = | | * static char *rcsid_map_c = |
* "$Id: region.c,v 1.11 2006/07/04 21:21:07 ryo_saeba Exp $"; | | * "$Id: region.c,v 1.12 2006/08/10 02:35:24 qal21 Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
if(first_region!=NULL) /* Only do this once */ | | if(first_region!=NULL) /* Only do this once */ |
return; | | return; |
| | |
sprintf(filename,"%s/%s",settings.datadir,settings.regions); | | sprintf(filename,"%s/%s/%s",settings.datadir,settings.mapdir,settings.regions); |
LOG(llevDebug,"Reading regions from %s...\n",filename); | | LOG(llevDebug,"Reading regions from %s...\n",filename); |
if((fp=open_and_uncompress(filename,0,&comp))==NULL) { | | if((fp=open_and_uncompress(filename,0,&comp))==NULL) { |
LOG(llevError," Can't open regions file %s in init_regions.\n", filename); | | LOG(llevError," Can't open regions file %s in init_regions.\n", filename); |