… | |
… | |
764 | /* Nothing, meaning player is standing next to an undefined square... */ |
764 | /* Nothing, meaning player is standing next to an undefined square... */ |
765 | LOG (llevError, "apply_map_builder: undefined square at (%d, %d, %s)\n", x, y, &pl->map->path); |
765 | LOG (llevError, "apply_map_builder: undefined square at (%d, %d, %s)\n", x, y, &pl->map->path); |
766 | new_draw_info (NDI_UNIQUE, 0, pl, "You'd better not build here, it looks weird."); |
766 | new_draw_info (NDI_UNIQUE, 0, pl, "You'd better not build here, it looks weird."); |
767 | return; |
767 | return; |
768 | } |
768 | } |
|
|
769 | |
769 | tmp2 = find_marked_object (pl); |
770 | tmp2 = find_marked_object (pl); |
770 | while (tmp) |
771 | while (tmp) |
771 | { |
772 | { |
772 | if (!QUERY_FLAG (tmp, FLAG_IS_BUILDABLE) && ((tmp->type != SIGN) || (strcmp (tmp->arch->name, "rune_mark")))) |
773 | if (!QUERY_FLAG (tmp, FLAG_IS_BUILDABLE) && ((tmp->type != SIGN) || (strcmp (tmp->arch->name, "rune_mark")))) |
773 | { |
774 | { |
… | |
… | |
782 | } |
783 | } |
783 | tmp = tmp->above; |
784 | tmp = tmp->above; |
784 | } |
785 | } |
785 | |
786 | |
786 | /* Now we know the square is ok */ |
787 | /* Now we know the square is ok */ |
787 | builder = pl->contr->ranges[range_builder]; |
788 | builder = pl->contr->ranged_ob; |
788 | |
789 | |
789 | if (builder->subtype == ST_BD_REMOVE) |
790 | if (builder->subtype == ST_BD_REMOVE) |
790 | /* Remover -> call specific function and bail out */ |
791 | /* Remover -> call specific function and bail out */ |
791 | { |
792 | { |
792 | apply_builder_remove (pl, dir); |
793 | apply_builder_remove (pl, dir); |