--- deliantra/server/common/init.C 2007/05/28 21:21:40 1.36
+++ deliantra/server/common/init.C 2007/07/01 05:00:17 1.38
@@ -1,23 +1,22 @@
/*
- * This file is part of Crossfire TRT, the Multiplayer Online Role Playing Game.
+ * This file is part of Crossfire TRT, the Roguelike Realtime MORPG.
*
* Copyright (©) 2005,2006,2007 Marc Alexander Lehmann / Robin Redeker / the Crossfire TRT team
* Copyright (©) 2002,2007 Mark Wedel & Crossfire Development Team
* Copyright (©) 1992,2007 Frank Tore Johansen
*
- * Crossfire TRT is free software; you can redistribute it and/or modify it
- * under the terms of the GNU General Public License as published by the Free
- * Software Foundation; either version 2 of the License, or (at your option)
- * any later version.
+ * Crossfire TRT is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
*
- * This program is distributed in the hope that it will be useful, but
- * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
- * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
- * for more details.
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
*
- * You should have received a copy of the GNU General Public License along
- * with Crossfire TRT; if not, write to the Free Software Foundation, Inc. 51
- * Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
*
* The authors can be reached via e-mail to
*/
@@ -220,23 +219,19 @@
void
init_dynamic (void)
{
- archetype *at = first_archetype;
-
- while (at)
+ for_all_archetypes (at)
{
- if (at->clone.type == MAP)
+ if (at->type == MAP)
{
- if (at->clone.race)
- first_map_ext_path = at->clone.race;
+ if (at->race)
+ first_map_ext_path = at->race;
- if (EXIT_PATH (&at->clone))
+ if (EXIT_PATH (at))
{
- first_map_path = EXIT_PATH (&at->clone);
+ first_map_path = EXIT_PATH (at);
return;
}
}
-
- at = at->next;
}
LOG (llevDebug, "You need an archetype of type 'map' and it has to contain the player start map\n");