… | |
… | |
793 | return; |
793 | return; |
794 | } |
794 | } |
795 | |
795 | |
796 | switch (tmp->subtype) |
796 | switch (tmp->subtype) |
797 | { |
797 | { |
798 | case ST_MAT_FLOOR: |
798 | case ST_MAT_FLOOR: |
799 | apply_builder_floor (pl, tmp, x, y); |
799 | apply_builder_floor (pl, tmp, x, y); |
800 | return; |
800 | return; |
801 | |
801 | |
802 | case ST_MAT_WALL: |
802 | case ST_MAT_WALL: |
803 | apply_builder_wall (pl, tmp, x, y); |
803 | apply_builder_wall (pl, tmp, x, y); |
804 | return; |
804 | return; |
805 | |
805 | |
806 | case ST_MAT_ITEM: |
806 | case ST_MAT_ITEM: |
807 | apply_builder_item (pl, tmp, x, y); |
807 | apply_builder_item (pl, tmp, x, y); |
808 | return; |
808 | return; |
809 | |
809 | |
810 | default: |
810 | default: |
811 | new_draw_info (NDI_UNIQUE, 0, pl, "Don't know how to apply this material, sorry."); |
811 | new_draw_info (NDI_UNIQUE, 0, pl, "Don't know how to apply this material, sorry."); |
812 | LOG (llevError, "apply_map_builder: invalid material subtype %d\n", tmp->subtype); |
812 | LOG (llevError, "apply_map_builder: invalid material subtype %d\n", tmp->subtype); |
813 | return; |
813 | return; |
814 | } |
814 | } |
815 | } |
815 | } |
816 | |
816 | |
817 | /* Here, it means the builder has an invalid type */ |
817 | /* Here, it means the builder has an invalid type */ |
818 | new_draw_info (NDI_UNIQUE, 0, pl, "Don't know how to apply this tool, sorry."); |
818 | new_draw_info (NDI_UNIQUE, 0, pl, "Don't know how to apply this tool, sorry."); |