… | |
… | |
27 | #include <sproto.h> |
27 | #include <sproto.h> |
28 | #include <rproto.h> |
28 | #include <rproto.h> |
29 | |
29 | |
30 | /* find a character in the layout. fx and fy are pointers to |
30 | /* find a character in the layout. fx and fy are pointers to |
31 | where to find the char. fx,fy = -1 if not found. */ |
31 | where to find the char. fx,fy = -1 if not found. */ |
32 | void |
32 | static void |
33 | find_in_layout (int mode, char target, int *fx, int *fy, char **layout, random_map_params *RP) |
33 | find_in_layout (int mode, char target, int *fx, int *fy, char **layout, random_map_params *RP) |
34 | { |
34 | { |
35 | int M; |
35 | int M; |
36 | int i, j; |
36 | int i, j; |
37 | |
37 | |
… | |
… | |
296 | |
296 | |
297 | /* the identifier for making a random map. */ |
297 | /* the identifier for making a random map. */ |
298 | if (RP->dungeon_level >= RP->dungeon_depth && *RP->final_map) |
298 | if (RP->dungeon_level >= RP->dungeon_depth && *RP->final_map) |
299 | { |
299 | { |
300 | maptile *new_map; |
300 | maptile *new_map; |
301 | object *the_exit_back = arch_to_object (the_exit_up->arch); |
301 | object *the_exit_back = the_exit_up->arch->instance (); |
302 | |
302 | |
303 | /* load it */ |
303 | /* load it */ |
304 | if (!(new_map = maptile::find_sync (RP->final_map))) |
304 | if (!(new_map = maptile::find_sync (RP->final_map))) |
305 | return; |
305 | return; |
306 | |
306 | |