ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/random_maps/exit.C
(Generate patch)

Comparing deliantra/server/random_maps/exit.C (file contents):
Revision 1.4 by root, Sun Sep 10 16:06:37 2006 UTC vs.
Revision 1.6 by root, Thu Sep 14 22:34:02 2006 UTC

1
2/*
3 * static char *rcsid_exit_c =
4 * "$Id: exit.C,v 1.4 2006/09/10 16:06:37 root Exp $";
5 */
6
7/* 1/*
8 CrossFire, A Multiplayer game for X-windows 2 CrossFire, A Multiplayer game for X-windows
9 3
10 Copyright (C) 2001 Mark Wedel & Crossfire Development Team 4 Copyright (C) 2001 Mark Wedel & Crossfire Development Team
11 Copyright (C) 1992 Frank Tore Johansen 5 Copyright (C) 1992 Frank Tore Johansen
22 16
23 You should have received a copy of the GNU General Public License 17 You should have received a copy of the GNU General Public License
24 along with this program; if not, write to the Free Software 18 along with this program; if not, write to the Free Software
25 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 19 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
26 20
27 The authors can be reached via e-mail at crossfire-devel@real-time.com 21 The authors can be reached via e-mail at <crossfire@schmorp.de>
28*/ 22*/
29 23
30#include <global.h> 24#include <global.h>
31#include <random_map.h> 25#include <random_map.h>
32#include <sproto.h> 26#include <sproto.h>
177 style_map_down = style_map_up; 171 style_map_down = style_map_up;
178 break; 172 break;
179 } 173 }
180 } 174 }
181 if (style_map_up == 0) 175 if (style_map_up == 0)
182 the_exit_up = arch_to_object (find_archetype ("exit")); 176 the_exit_up = arch_to_object (archetype::find ("exit"));
183 else 177 else
184 { 178 {
185 object *tmp; 179 object *tmp;
186 180
187 tmp = pick_random_object (style_map_up); 181 tmp = pick_random_object (style_map_up);
189 } 183 }
190 184
191 /* we need a down exit only if we're recursing. */ 185 /* we need a down exit only if we're recursing. */
192 if (RP->dungeon_level < RP->dungeon_depth || RP->final_map[0] != 0) 186 if (RP->dungeon_level < RP->dungeon_depth || RP->final_map[0] != 0)
193 if (style_map_down == 0) 187 if (style_map_down == 0)
194 the_exit_down = arch_to_object (find_archetype ("exit")); 188 the_exit_down = arch_to_object (archetype::find ("exit"));
195 else 189 else
196 { 190 {
197 object *tmp; 191 object *tmp;
198 192
199 tmp = pick_random_object (style_map_down); 193 tmp = pick_random_object (style_map_down);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines