diff --git a/Common.pm b/Common.pm index 2f14b5e9..3e11badb 100644 --- a/Common.pm +++ b/Common.pm @@ -209,7 +209,8 @@ sub get_primitive_base($;$) { if ($base =~ /u?int[136]?[2468]_t/) { header_ref("cstdint"); } - $primitive_types{$base} or die "Must be primitive: $base\n"; + + $base = primitive_type_name($base); return $base; } diff --git a/changelog.txt b/changelog.txt index 267a4685..3dafa786 100644 --- a/changelog.txt +++ b/changelog.txt @@ -19,6 +19,10 @@ Template for new versions: # Future ## Structures +- reorganize all structure definitions to match bay12 header layouts +- promote all bay12 structures, enums, and bitfields to top-level types +- fill in a bunch of structures that were missing +- fix various structure errors # 51.02-r1 diff --git a/df.d_interface.xml b/df.d_interface.xml index c3d64361..ee5064b4 100644 --- a/df.d_interface.xml +++ b/df.d_interface.xml @@ -5749,7 +5749,7 @@ - + diff --git a/df.itemdef.xml b/df.itemdef.xml index 61b4918d..e433b0d0 100644 --- a/df.itemdef.xml +++ b/df.itemdef.xml @@ -332,7 +332,7 @@ - supposed to be 8, but the struct itself uses int32_t and only has room for 6 + supposed to be 8, but the struct itself uses int32_t and only has room for 5 bay12: ITEM_TOOL_GRAPHICS_FLAG_MATERIAL_* diff --git a/df.region.xml b/df.region.xml index b5f1c032..d9733b80 100644 --- a/df.region.xml +++ b/df.region.xml @@ -675,7 +675,7 @@ - bay12: + diff --git a/df.site.xml b/df.site.xml index ffd3ab3f..4db08f73 100644 --- a/df.site.xml +++ b/df.site.xml @@ -168,7 +168,7 @@ - +