… | |
… | |
177 | fountain->destroy (); |
177 | fountain->destroy (); |
178 | potion->destroy (); |
178 | potion->destroy (); |
179 | return; |
179 | return; |
180 | } |
180 | } |
181 | |
181 | |
182 | ix += freearr_x[i]; |
182 | ix += DIRX (i); |
183 | iy += freearr_y[i]; |
183 | iy += DIRY (i); |
184 | potion->face = fountain->face; |
184 | potion->face = fountain->face; |
185 | potion->set_flag (FLAG_NO_PICK); |
185 | potion->set_flag (FLAG_NO_PICK); |
186 | potion->set_flag (FLAG_IDENTIFIED); |
186 | potion->set_flag (FLAG_IDENTIFIED); |
187 | potion->name = potion->name_pl = shstr_fountain; |
187 | potion->name = potion->name_pl = shstr_fountain; |
188 | potion->x = ix; |
188 | potion->x = ix; |
… | |
… | |
216 | int iy = rmg_rndm (1, map->height - 2); |
216 | int iy = rmg_rndm (1, map->height - 2); |
217 | |
217 | |
218 | int i = rmg_find_free_spot (the_exit, map, ix, iy, 1, SIZEOFFREE1 + 1); |
218 | int i = rmg_find_free_spot (the_exit, map, ix, iy, 1, SIZEOFFREE1 + 1); |
219 | if (i >= 0) |
219 | if (i >= 0) |
220 | { |
220 | { |
221 | the_exit->x = ix + freearr_x[i]; |
221 | the_exit->x = ix + DIRX (i); |
222 | the_exit->y = iy + freearr_y[i]; |
222 | the_exit->y = iy + DIRY (i); |
223 | break; |
223 | break; |
224 | } |
224 | } |
225 | } |
225 | } |
226 | |
226 | |
227 | if (!hole_type) |
227 | if (!hole_type) |