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.5 by root, Thu Sep 14 21:16:12 2006 UTC

1 1
2/* 2/*
3 * static char *rcsid_exit_c = 3 * static char *rcsid_exit_c =
4 * "$Id: exit.C,v 1.4 2006/09/10 16:06:37 root Exp $"; 4 * "$Id: exit.C,v 1.5 2006/09/14 21:16:12 root Exp $";
5 */ 5 */
6 6
7/* 7/*
8 CrossFire, A Multiplayer game for X-windows 8 CrossFire, A Multiplayer game for X-windows
9 9
177 style_map_down = style_map_up; 177 style_map_down = style_map_up;
178 break; 178 break;
179 } 179 }
180 } 180 }
181 if (style_map_up == 0) 181 if (style_map_up == 0)
182 the_exit_up = arch_to_object (find_archetype ("exit")); 182 the_exit_up = arch_to_object (archetype::find ("exit"));
183 else 183 else
184 { 184 {
185 object *tmp; 185 object *tmp;
186 186
187 tmp = pick_random_object (style_map_up); 187 tmp = pick_random_object (style_map_up);
189 } 189 }
190 190
191 /* we need a down exit only if we're recursing. */ 191 /* we need a down exit only if we're recursing. */
192 if (RP->dungeon_level < RP->dungeon_depth || RP->final_map[0] != 0) 192 if (RP->dungeon_level < RP->dungeon_depth || RP->final_map[0] != 0)
193 if (style_map_down == 0) 193 if (style_map_down == 0)
194 the_exit_down = arch_to_object (find_archetype ("exit")); 194 the_exit_down = arch_to_object (archetype::find ("exit"));
195 else 195 else
196 { 196 {
197 object *tmp; 197 object *tmp;
198 198
199 tmp = pick_random_object (style_map_down); 199 tmp = pick_random_object (style_map_down);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines