… | |
… | |
82 | int sindex; |
82 | int sindex; |
83 | object *this_door, *new_door; |
83 | object *this_door, *new_door; |
84 | |
84 | |
85 | sindex = surround_check2 (maze, i, j, RP->Xsize, RP->Ysize); |
85 | sindex = surround_check2 (maze, i, j, RP->Xsize, RP->Ysize); |
86 | if (sindex == 3) |
86 | if (sindex == 3) |
87 | this_door = pick_random_object (hdoors); |
87 | this_door = hdoors->pick_random_object (); |
88 | else |
88 | else |
89 | this_door = pick_random_object (vdoors); |
89 | this_door = vdoors->pick_random_object (); |
90 | |
90 | |
91 | if (!this_door) |
91 | if (!this_door) |
92 | abort (); |
92 | abort (); |
93 | |
93 | |
94 | new_door = arch_to_object (this_door->arch); |
94 | new_door = arch_to_object (this_door->arch); |