… | |
… | |
473 | if (!OUT_OF_REAL_MAP (pl->map, xt, yt)) |
473 | if (!OUT_OF_REAL_MAP (pl->map, xt, yt)) |
474 | fix_walls (pl->map, xt, yt); |
474 | fix_walls (pl->map, xt, yt); |
475 | } |
475 | } |
476 | |
476 | |
477 | /* Now remove raw item from inventory */ |
477 | /* Now remove raw item from inventory */ |
478 | decrease_ob (material); |
478 | material->decrease (); |
479 | |
479 | |
480 | /* And tell player about the fix */ |
480 | /* And tell player about the fix */ |
481 | new_draw_info (NDI_UNIQUE, 0, pl, message); |
481 | new_draw_info (NDI_UNIQUE, 0, pl, message); |
482 | } |
482 | } |
483 | |
483 | |
… | |
… | |
560 | fix_walls (pl->map, xt, yt); |
560 | fix_walls (pl->map, xt, yt); |
561 | } |
561 | } |
562 | } |
562 | } |
563 | |
563 | |
564 | /* Now remove item from inventory */ |
564 | /* Now remove item from inventory */ |
565 | decrease_ob (material); |
565 | material->decrease (); |
566 | |
566 | |
567 | /* And tell player what happened */ |
567 | /* And tell player what happened */ |
568 | new_draw_info (NDI_UNIQUE, 0, pl, message); |
568 | new_draw_info (NDI_UNIQUE, 0, pl, message); |
569 | } |
569 | } |
570 | |
570 | |
… | |
… | |
665 | insert_ob_in_map_at (tmp, pl->map, floor, insert_flag, x, y); |
665 | insert_ob_in_map_at (tmp, pl->map, floor, insert_flag, x, y); |
666 | if (connected != 0) |
666 | if (connected != 0) |
667 | add_button_link (tmp, pl->map, connected); |
667 | add_button_link (tmp, pl->map, connected); |
668 | |
668 | |
669 | new_draw_info_format (NDI_UNIQUE, 0, pl, "You build the %s", query_name (tmp)); |
669 | new_draw_info_format (NDI_UNIQUE, 0, pl, "You build the %s", query_name (tmp)); |
670 | decrease_ob_nr (item, 1); |
670 | item->decrease (); |
671 | } |
671 | } |
672 | |
672 | |
673 | /** |
673 | /** |
674 | * Item remover. |
674 | * Item remover. |
675 | * |
675 | * |