ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/server/init.C
(Generate patch)

Comparing deliantra/server/server/init.C (file contents):
Revision 1.42 by root, Tue Mar 6 03:10:11 2007 UTC vs.
Revision 1.43 by root, Tue Mar 6 14:01:11 2007 UTC

513 513
514 /* We don't require a settings file at current time, but down the road, 514 /* We don't require a settings file at current time, but down the road,
515 * there will probably be so many values that not having a settings file 515 * there will probably be so many values that not having a settings file
516 * will not be a good thing. 516 * will not be a good thing.
517 */ 517 */
518 if ((fp = open_and_uncompress (buf, 0, &comp)) == NULL) 518 if (!(fp = open_and_uncompress (buf, 0, &comp)))
519 { 519 {
520 LOG (llevError, "Warning: No settings file found\n"); 520 LOG (llevError, "Error: No settings file found\n");
521 return; 521 exit (1);
522 } 522 }
523
523 while (fgets (buf, MAX_BUF - 1, fp) != NULL) 524 while (fgets (buf, MAX_BUF - 1, fp) != NULL)
524 { 525 {
525 if (buf[0] == '#') 526 if (buf[0] == '#')
526 continue; 527 continue;
527 /* eliminate newline */ 528 /* eliminate newline */

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines