|
|
|
@ -354,7 +354,7 @@ static int mark_item(color_ostream &out, df::item *item, df::item_flags bad_flag
|
|
|
|
|
TRACE(perf,out).print("%s running mark_item\nshould_melt=%d\n", plugin_name,should_melt);
|
|
|
|
|
string name = "";
|
|
|
|
|
item->getItemDescription(&name, 0);
|
|
|
|
|
TRACE(perf,out).print("item %s %d\n", name, item->id);
|
|
|
|
|
TRACE(perf,out).print("item %s %d\n", name.c_str(), item->id);
|
|
|
|
|
if (item->flags.whole & bad_flags.whole){
|
|
|
|
|
TRACE(perf,out).print("rejected flag check\n");
|
|
|
|
|
item_count++;
|
|
|
|
@ -429,7 +429,7 @@ static int32_t mark_all_in_stockpile(color_ostream &out, PersistentDataItem & st
|
|
|
|
|
F(in_job);
|
|
|
|
|
#undef F
|
|
|
|
|
|
|
|
|
|
size_t marked_count = 0;
|
|
|
|
|
int32_t marked_count = 0;
|
|
|
|
|
|
|
|
|
|
if(!stockpile.isValid()) {
|
|
|
|
|
return 0;
|
|
|
|
@ -544,7 +544,7 @@ static void automelt_printStatus(color_ostream &out) {
|
|
|
|
|
out.print("automelt is %s\n\n", is_enabled ? "enabled" : "disabled");
|
|
|
|
|
|
|
|
|
|
map<int32_t, int32_t> item_counts, marked_item_counts, premarked_item_counts;
|
|
|
|
|
int32_t marked_items = scan_stockpiles(out, true, item_counts, marked_item_counts, premarked_item_counts);
|
|
|
|
|
scan_stockpiles(out, true, item_counts, marked_item_counts, premarked_item_counts);
|
|
|
|
|
|
|
|
|
|
int32_t total_items_all_piles = 0;
|
|
|
|
|
int32_t premarked_items_all_piles = 0;
|
|
|
|
|