Show industry production callback mask values in industry debug window

This commit is contained in:
Jonathan G Rennison
2020-12-23 23:03:56 +00:00
parent 8ac436f507
commit 7b75fcf487

View File

@@ -572,6 +572,12 @@ class NIHIndustry : public NIHelper {
print(buffer);
}
}
const IndustrySpec *indsp = GetIndustrySpec(ind->type);
seprintf(buffer, lastof(buffer), " CBM_IND_PRODUCTION_CARGO_ARRIVAL: %s", HasBit(indsp->callback_mask, CBM_IND_PRODUCTION_CARGO_ARRIVAL) ? "yes" : "no");
print(buffer);
seprintf(buffer, lastof(buffer), " CBM_IND_PRODUCTION_256_TICKS: %s", HasBit(indsp->callback_mask, CBM_IND_PRODUCTION_256_TICKS) ? "yes" : "no");
print(buffer);
}
}
};