ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/common/region.c
(Generate patch)

Comparing deliantra/server/common/region.c (file contents):
Revision 1.2 by elmex, Sun Jul 9 10:56:01 2006 UTC vs.
Revision 1.3 by elmex, Fri Aug 11 16:41:11 2006 UTC

1/* 1/*
2 * static char *rcsid_map_c = 2 * static char *rcsid_map_c =
3 * "$Id: region.c,v 1.2 2006/07/09 10:56:01 elmex Exp $"; 3 * "$Id: region.c,v 1.3 2006/08/11 16:41:11 elmex Exp $";
4 */ 4 */
5 5
6/* 6/*
7 CrossFire, A Multiplayer game for X-windows 7 CrossFire, A Multiplayer game for X-windows
8 8
226 int comp; 226 int comp;
227 227
228 if(first_region!=NULL) /* Only do this once */ 228 if(first_region!=NULL) /* Only do this once */
229 return; 229 return;
230 230
231 sprintf(filename,"%s/%s",settings.datadir,settings.regions); 231 sprintf(filename,"%s/%s/%s",settings.datadir,settings.mapdir,settings.regions);
232 LOG(llevDebug,"Reading regions from %s...\n",filename); 232 LOG(llevDebug,"Reading regions from %s...\n",filename);
233 if((fp=open_and_uncompress(filename,0,&comp))==NULL) { 233 if((fp=open_and_uncompress(filename,0,&comp))==NULL) {
234 LOG(llevError," Can't open regions file %s in init_regions.\n", filename); 234 LOG(llevError," Can't open regions file %s in init_regions.\n", filename);
235 return; 235 return;
236 } 236 }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines