--- deliantra/server/common/init.C 2009/11/07 18:30:05 1.51 +++ deliantra/server/common/init.C 2010/04/11 17:27:51 1.56 @@ -1,9 +1,9 @@ /* * This file is part of Deliantra, the Roguelike Realtime MMORPG. * - * Copyright (©) 2005,2006,2007,2008 Marc Alexander Lehmann / Robin Redeker / the Deliantra team - * Copyright (©) 2002,2007 Mark Wedel & Crossfire Development Team - * Copyright (©) 1992,2007 Frank Tore Johansen + * Copyright (©) 2005,2006,2007,2008,2009,2010 Marc Alexander Lehmann / Robin Redeker / the Deliantra team + * Copyright (©) 2002 Mark Wedel & Crossfire Development Team + * Copyright (©) 1992 Frank Tore Johansen * * Deliantra is free software: you can redistribute it and/or modify it under * the terms of the Affero GNU General Public License as published by the @@ -74,7 +74,7 @@ DATADIR, LOCALDIR, PLAYERDIR, MAPDIR, ARCHETYPES, REGIONS, TREASURES, - UNIQUE_DIR, TEMPLATE_DIR, + UNIQUE_DIR, "", TMPDIR, PK_LUCK_PENALTY, STAT_LOSS_ON_DEATH, @@ -137,7 +137,7 @@ * overwrite these if specified. */ void -init_environ (void) +init_environ () { const char *cp; @@ -160,26 +160,26 @@ * Might use environment-variables as default for some of them. */ void -init_globals (void) +init_globals () { if (settings.logfilename[0] == 0) - set_logfd (-1); + log_setfd (-1); else { int logfd = open (settings.logfilename, O_CREAT|O_WRONLY|O_APPEND, 0666); if (logfd >= 0) - set_logfd (logfd); + log_setfd (logfd); else { - set_logfd (-1); + log_setfd (-1); LOG (llevError, "Unable to open %s as the logfile - will use stderr instead", settings.logfilename); } } } void -init_dynamic (void) +init_dynamic () { first_map_ext_path = "/start/HallsOfSelection"; first_map_path = "/HallOfSelection"; @@ -193,7 +193,7 @@ //attackmess_t attack_mess[NROFATTACKMESS][MAXATTACKMESS]; void -init_attackmess (void) +init_attackmess () { char buf[MAX_BUF]; char filename[MAX_BUF];