d_map debug (#3066)

This commit is contained in:
Jcw87
2026-01-25 21:17:59 -08:00
committed by GitHub
parent c9e2a73dda
commit 7cce77d9e1
14 changed files with 992 additions and 287 deletions
+7 -4
View File
@@ -235,18 +235,21 @@ u8 const dTres_c::typeToTypeGroup[17][2] = {
{0x83, 0x0C}, {0x84, 0x0D}, {0x85, 0x0E}, {0x87, 0x0F}, {0x88, 0x10},
};
int dTres_c::getTypeGroupNoToType(u8 i_typeGroupNo) {
u8 dTres_c::getTypeGroupNoToType(u8 i_typeGroupNo) {
JUT_ASSERT(651, i_typeGroupNo < TYPE_GROUP_ENUM_NUMBER);
return typeToTypeGroup[i_typeGroupNo][0];
}
u8 dTres_c::getTypeToTypeGroupNo(u8 i_type) {
int groupNo = 17;
int rt = 17;
for (int i = 0; i < 17; i++) {
if (i_type == typeToTypeGroup[i][0]) {
groupNo = typeToTypeGroup[i][1];
rt = typeToTypeGroup[i][1];
break;
}
}
return groupNo;
JUT_ASSERT(674, rt < TYPE_GROUP_ENUM_NUMBER);
return rt;
}