diff --git a/src/table/newgrf_debug_data.h b/src/table/newgrf_debug_data.h index e99758bbdb..1a50487b8f 100644 --- a/src/table/newgrf_debug_data.h +++ b/src/table/newgrf_debug_data.h @@ -846,6 +846,15 @@ class NIHTown : public NIHelper { seprintf(buffer, lastof(buffer), " %u: %s", st->index, st->GetCachedName()); print(buffer); } + + if (t->have_ratings != 0) { + print(" Company ratings:"); + uint8 bit; + FOR_EACH_SET_BIT(bit, t->have_ratings) { + seprintf(buffer, lastof(buffer), " %u: %d", bit, t->ratings[bit]); + print(buffer); + } + } } };