From f6abc81cf17aa03f1718f523ce049e0e41e70303 Mon Sep 17 00:00:00 2001 From: frosch Date: Sun, 10 Jan 2021 18:52:59 +0100 Subject: [PATCH] Fix: add missing variables to NewGRF inspect window. --- .github/PULL_REQUEST_TEMPLATE.md | 1 + src/table/newgrf_debug_data.h | 9 +++++++++ 2 files changed, 10 insertions(+) diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md index 1949f6f1f9..b0151ed52a 100644 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -44,4 +44,5 @@ Some things are not automated, and forgotten often. This list is a reminder for * ai_changelog.hpp, gs_changelog.hpp need updating. * The compatibility wrappers (compat_*.nut) need updating. * This PR affects the NewGRF API? (label 'needs review: NewGRF') + * newgrf_debug_data.h may need updating. * [PR must be added to API tracker](https://wiki.openttd.org/en/Development/NewGRF/Specification%20Status) diff --git a/src/table/newgrf_debug_data.h b/src/table/newgrf_debug_data.h index d69c2d5cc3..e31d093385 100644 --- a/src/table/newgrf_debug_data.h +++ b/src/table/newgrf_debug_data.h @@ -343,6 +343,15 @@ static const NIVariable _niv_industries[] = { NIV(0x66, "get square of Euclidean distance of closes town"), NIV(0x67, "count of industry and distance of closest instance"), NIV(0x68, "count of industry and distance of closest instance with layout filter"), + NIV(0x69, "produced cargo waiting"), + NIV(0x6A, "cargo produced this month"), + NIV(0x6B, "cargo transported this month"), + NIV(0x6C, "cargo produced last month"), + NIV(0x6D, "cargo transported last month"), + NIV(0x6E, "date since cargo was delivered"), + NIV(0x6F, "waiting input cargo"), + NIV(0x70, "production rate"), + NIV(0x71, "percentage of cargo transported last month"), NIV_END() };