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

Comparing deliantra/server/common/init.c (file contents):
Revision 1.2 by root, Fri Feb 3 07:25:24 2006 UTC vs.
Revision 1.3 by elmex, Wed Feb 22 18:53:48 2006 UTC

1/* 1/*
2 * static char *rcsid_init_c = 2 * static char *rcsid_init_c =
3 * "$Id: init.c,v 1.2 2006/02/03 07:25:24 root Exp $"; 3 * "$Id: init.c,v 1.3 2006/02/22 18:53:48 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
98 98
99/* perhaps not the best place for this, but needs to be 99/* perhaps not the best place for this, but needs to be
100 * in some file in the common area so that standalone 100 * in some file in the common area so that standalone
101 * programs, like the random map generator, can be built. 101 * programs, like the random map generator, can be built.
102 */ 102 */
103char *spellpathnames[NRSPELLPATHS] = { 103const char* const spellpathnames[NRSPELLPATHS] = {
104 "Protection", 104 "Protection",
105 "Fire", 105 "Fire",
106 "Frost", 106 "Frost",
107 "Electricity", 107 "Electricity",
108 "Missiles", 108 "Missiles",
234 else if ((logfile=fopen(settings.logfilename, "a"))==NULL) { 234 else if ((logfile=fopen(settings.logfilename, "a"))==NULL) {
235 fprintf(stderr,"Unable to open %s as the logfile - will use stderr instead\n", 235 fprintf(stderr,"Unable to open %s as the logfile - will use stderr instead\n",
236 settings.logfilename); 236 settings.logfilename);
237 logfile = stderr; 237 logfile = stderr;
238 } 238 }
239 setlinebuf(logfile); 239 else {
240 setvbuf(logfile, NULL, _IOLBF, 0);
241 }
240 exiting = 0; 242 exiting = 0;
241 first_player=NULL; 243 first_player=NULL;
242 first_friendly_object=NULL; 244 first_friendly_object=NULL;
243 first_map=NULL; 245 first_map=NULL;
244 first_treasurelist=NULL; 246 first_treasurelist=NULL;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines