--- deliantra/server/random_maps/treasure.C 2010/07/04 22:12:26 1.58 +++ deliantra/server/random_maps/treasure.C 2016/11/16 23:42:02 1.64 @@ -1,31 +1,31 @@ /* * This file is part of Deliantra, the Roguelike Realtime MMORPG. - * - * Copyright (©) 2005,2006,2007,2008,2009,2010 Marc Alexander Lehmann / Robin Redeker / the Deliantra team + * + * Copyright (©) 2005,2006,2007,2008,2009,2010,2011,2012,2013,2014,2015,2016 Marc Alexander Lehmann / Robin Redeker / the Deliantra team * Copyright (©) 2001 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 * 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. - * + * * You should have received a copy of the Affero GNU General Public License * and the GNU General Public License along with this program. If not, see * . - * + * * The authors can be reached via e-mail to */ /* placing treasure in maps, where appropriate. */ #include -#include +#include #include /* some defines for various options which can be set. */ @@ -690,7 +690,7 @@ { /* place a door */ remove_monsters (x1, y1, map); - object *new_door = get_archetype (freearr_x[i] == 0 ? doors[1] : doors[0]); + object *new_door = archetype::get (freearr_x[i] == 0 ? doors[1] : doors[0]); map->insert (new_door, x1, y1); doorlist[ndoors_made] = new_door; ndoors_made++; @@ -793,7 +793,7 @@ { for (i = 0, door = doorlist[0]; doorlist[i]; i++) { - object *new_door = get_archetype (shstr_locked_door1); + object *new_door = archetype::get (shstr_locked_door1); door = doorlist[i]; new_door->face = door->face;