From 7b75fcf4879809f5e6cb4378b5e7593123df62d7 Mon Sep 17 00:00:00 2001 From: Jonathan G Rennison Date: Wed, 23 Dec 2020 23:03:56 +0000 Subject: [PATCH] Show industry production callback mask values in industry debug window --- src/table/newgrf_debug_data.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/table/newgrf_debug_data.h b/src/table/newgrf_debug_data.h index 7db96f3bf4..65ead046d9 100644 --- a/src/table/newgrf_debug_data.h +++ b/src/table/newgrf_debug_data.h @@ -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); } } };