Add industry type id to newgrf debug window

This commit is contained in:
Pavel Stupnikov
2016-12-27 19:05:24 +03:00
parent 1947b8bf34
commit 193d7a13e1

View File

@@ -459,6 +459,7 @@ struct NewGRFInspectWindow : Window {
const void *base_spec = nih->GetSpec(index);
uint i = 0;
this->DrawString(r, i++, "Industry type: %d", (int)((const Industry *)base)->type);
if (nif->variables != NULL) {
this->DrawString(r, i++, "Variables:");
for (const NIVariable *niv = nif->variables; niv->name != NULL; niv++) {