… | |
… | |
65 | { |
65 | { |
66 | new_draw_info (NDI_UNIQUE, 0, op, "Can't make a rune there!"); |
66 | new_draw_info (NDI_UNIQUE, 0, op, "Can't make a rune there!"); |
67 | return 0; |
67 | return 0; |
68 | } |
68 | } |
69 | |
69 | |
70 | for (tmp = get_map_ob (m, nx, ny); tmp != NULL; tmp = tmp->above) |
70 | for (tmp = GET_MAP_OB (m, nx, ny); tmp != NULL; tmp = tmp->above) |
71 | if (tmp->type == RUNE) |
71 | if (tmp->type == RUNE) |
72 | break; |
72 | break; |
73 | |
73 | |
74 | if (tmp) |
74 | if (tmp) |
75 | { |
75 | { |
… | |
… | |
357 | { |
357 | { |
358 | new_draw_info (NDI_UNIQUE, 0, op, "There's nothing there!"); |
358 | new_draw_info (NDI_UNIQUE, 0, op, "There's nothing there!"); |
359 | return 0; |
359 | return 0; |
360 | } |
360 | } |
361 | |
361 | |
362 | for (tmp = get_map_ob (m, x, y); tmp != NULL; tmp = tmp->above) |
362 | for (tmp = GET_MAP_OB (m, x, y); tmp != NULL; tmp = tmp->above) |
363 | { |
363 | { |
364 | if (tmp->type == RUNE || tmp->type == TRAP) |
364 | if (tmp->type == RUNE || tmp->type == TRAP) |
365 | break; |
365 | break; |
366 | |
366 | |
367 | /* we could put a probability chance here, but since nothing happens |
367 | /* we could put a probability chance here, but since nothing happens |