Debug: Add support for showing extended variables in object debug window

This commit is contained in:
Jonathan G Rennison
2022-02-08 18:59:56 +00:00
parent 038e96bfb0
commit 2959221066
2 changed files with 40 additions and 1 deletions

View File

@@ -18,6 +18,7 @@
#include "../object_map.h"
#include "../waypoint_base.h"
#include "../string_func_extra.h"
#include "../newgrf_extension.h"
/* Helper for filling property tables */
#define NIP(prop, base, variable, type, name) { name, (ptrdiff_t)cpp_offsetof(base, variable), cpp_sizeof(base, variable), prop, type }
@@ -842,6 +843,8 @@ static const NIVariable _niv_objects[] = {
NIV(0x62, "land info of nearby tiles"),
NIV(0x63, "animation stage of nearby tiles"),
NIV(0x64, "distance on nearest object with given type"),
NIV(A2VRI_OBJECT_FOUNDATION_SLOPE, "slope after foundation applied"),
NIV(A2VRI_OBJECT_FOUNDATION_SLOPE_CHANGE, "slope after foundation applied xor non-foundation slope"),
NIV_END()
};