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.51 by root, Sat Nov 7 18:30:05 2009 UTC vs.
Revision 1.52 by root, Sun Nov 29 10:55:18 2009 UTC

135/* init_environ initialises values from the environmental variables. 135/* init_environ initialises values from the environmental variables.
136 * it needs to be called very early, since command line options should 136 * it needs to be called very early, since command line options should
137 * overwrite these if specified. 137 * overwrite these if specified.
138 */ 138 */
139void 139void
140init_environ (void) 140init_environ ()
141{ 141{
142 const char *cp; 142 const char *cp;
143 143
144 if (cp = getenv ("DELIANTRA_CONFDIR" )) settings.confdir = cp; 144 if (cp = getenv ("DELIANTRA_CONFDIR" )) settings.confdir = cp;
145 if (cp = getenv ("DELIANTRA_LIBDIR" )) settings.datadir = cp; 145 if (cp = getenv ("DELIANTRA_LIBDIR" )) settings.datadir = cp;
158/* 158/*
159 * Initialises all global variables. 159 * Initialises all global variables.
160 * Might use environment-variables as default for some of them. 160 * Might use environment-variables as default for some of them.
161 */ 161 */
162void 162void
163init_globals (void) 163init_globals ()
164{ 164{
165 if (settings.logfilename[0] == 0) 165 if (settings.logfilename[0] == 0)
166 set_logfd (-1); 166 set_logfd (-1);
167 else 167 else
168 { 168 {
177 } 177 }
178 } 178 }
179} 179}
180 180
181void 181void
182init_dynamic (void) 182init_dynamic ()
183{ 183{
184 first_map_ext_path = "/start/HallsOfSelection"; 184 first_map_ext_path = "/start/HallsOfSelection";
185 first_map_path = "/HallOfSelection"; 185 first_map_path = "/HallOfSelection";
186} 186}
187 187
191 */ 191 */
192 192
193//attackmess_t attack_mess[NROFATTACKMESS][MAXATTACKMESS]; 193//attackmess_t attack_mess[NROFATTACKMESS][MAXATTACKMESS];
194 194
195void 195void
196init_attackmess (void) 196init_attackmess ()
197{ 197{
198 char buf[MAX_BUF]; 198 char buf[MAX_BUF];
199 char filename[MAX_BUF]; 199 char filename[MAX_BUF];
200 char *cp, *p; 200 char *cp, *p;
201 FILE *fp; 201 FILE *fp;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines