… | |
… | |
304 | |
304 | |
305 | if (the_exit_down) |
305 | if (the_exit_down) |
306 | { |
306 | { |
307 | char buf[16384]; |
307 | char buf[16384]; |
308 | |
308 | |
309 | int i = find_first_free_spot (the_exit_down, map, downx, downy); |
309 | int i = find_free_spot (the_exit_down, map, downx, downy, 1, SIZEOFFREE1 + 1); |
310 | the_exit_down->x = downx + freearr_x[i]; |
310 | the_exit_down->x = downx + freearr_x[i]; |
311 | the_exit_down->y = downy + freearr_y[i]; |
311 | the_exit_down->y = downy + freearr_y[i]; |
312 | RP->origin_x = the_exit_down->x; |
312 | RP->origin_x = the_exit_down->x; |
313 | RP->origin_y = the_exit_down->y; |
313 | RP->origin_y = the_exit_down->y; |
314 | write_map_parameters_to_string (buf, RP); |
314 | write_map_parameters_to_string (buf, RP); |