crvhahen draw 85%

This commit is contained in:
StuckInLimbo 2025-07-30 17:50:35 -04:00
parent 0466671503
commit e99b56c2f0
No known key found for this signature in database
GPG Key ID: AB3739B111D9BEB6
1 changed files with 10 additions and 4 deletions

View File

@ -310,7 +310,8 @@ void daObjCRVHAHEN_c::setBaseMtx() {
static int daObjCRVHAHEN_Draw(daObjCRVHAHEN_c* i_this) { static int daObjCRVHAHEN_Draw(daObjCRVHAHEN_c* i_this) {
g_env_light.settingTevStruct(0, &i_this->current.pos, &i_this->tevStr); g_env_light.settingTevStruct(0, &i_this->current.pos, &i_this->tevStr);
int i; int i = 0;
int j = i; // forces reuse instead of new li
for (i = 0; i < 10; i++) { for (i = 0; i < 10; i++) {
g_env_light.setLightTevColorType_MAJI(i_this->mpModel[i], &i_this->tevStr); g_env_light.setLightTevColorType_MAJI(i_this->mpModel[i], &i_this->tevStr);
} }
@ -319,12 +320,17 @@ static int daObjCRVHAHEN_Draw(daObjCRVHAHEN_c* i_this) {
if (i_this->field8_0x750 != false) { if (i_this->field8_0x750 != false) {
for (i = 0; i < 10; i++) { for (i = 0; i < 10; i++) {
int roomNum = fopAcM_GetRoomNo(i_this); // Suggestion from ChatGPT, worked
g_dComIfG_gameInfo.play.entrySimpleModel(i_this->mpModel[i], roomNum); volatile u8* roomNoPtr = (u8*)((char*)i_this + 0x4e2); // 0x4e2 is i_this->base.current.roomNo
s8 roomNo = *roomNoPtr;
// int roomNo = fopAcM_GetRoomNo(i_this); // puts the mr, addi, and lwzx instructions in the wrong place
g_dComIfG_gameInfo.play.entrySimpleModel(i_this->mpModel[i], roomNo);
} }
} }
dComIfGd_setListBG(); dComIfGd_setList();
return 1; return 1;
} }