version 1.6 | | version 1.7 |
---|
| | |
/* | | /* |
* static char *rcsid_init_c = | | * static char *rcsid_init_c = |
* "$Id: init.c,v 1.6 2000/12/04 00:40:03 cvs Exp $"; | | * "$Id: init.c,v 1.7 2001/03/05 02:05:18 mwedel Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
* correspond to. | | * correspond to. |
*/ | | */ |
struct Settings settings = { | | struct Settings settings = { |
"logfile", /* Logfile */ | | "", /* Logfile */ |
CSPORT, /* Client/server port */ | | CSPORT, /* Client/server port */ |
| | |
/* Debug level */ | | /* Debug level */ |
| | |
*/ | | */ |
| | |
void init_globals() { | | void init_globals() { |
| | if (settings.logfilename[0] == 0) { |
logfile = stderr; | | logfile = stderr; |
| | } |
| | else if ((logfile=fopen(settings.logfilename, "w"))==NULL) { |
| | fprintf(stderr,"Unable to open %s as the logfile - will use stderr instead\n", |
| | settings.logfilename); |
| | logfile = stderr; |
| | } |
exiting = 0; | | exiting = 0; |
first_player=NULL; | | first_player=NULL; |
first_friendly_object=NULL; | | first_friendly_object=NULL; |