mirror of
https://github.com/zeldaret/tww.git
synced 2026-07-11 14:38:38 -04:00
More demo work, cleanup
This commit is contained in:
@@ -16,6 +16,10 @@
|
||||
#include "dolphin/mtx/mtxvec.h"
|
||||
#include "dolphin/types.h"
|
||||
|
||||
#if VERSION == VERSION_DEMO
|
||||
#pragma nosyminline on
|
||||
#endif
|
||||
|
||||
/* 80247500-8024754C .text ASSERT_SOLDHEAP__Fv */
|
||||
void ASSERT_SOLDHEAP() {
|
||||
if (JKRHeap::sCurrentHeap->getHeapType() != 'SLID')
|
||||
@@ -467,7 +471,7 @@ bool cBgW::LineCheckGrpRp(cBgS_LinChk* chk, int grp_id, int depth) {
|
||||
bool cBgW::RwgGroundCheckCommon(f32 y, u16 poly_index, cBgS_GndChk* chk) {
|
||||
if (y < chk->GetPointP()->y && y > chk->GetNowY()) {
|
||||
cBgD_Tri_t* tri = &pm_bgd->m_t_tbl[poly_index];
|
||||
if (cM3d_CrossY_Tri_Front(pm_vtx_tbl[tri->vtx0], pm_vtx_tbl[tri->vtx1], pm_vtx_tbl[tri->vtx2], &chk->m_pos) && !ChkPolyThrough(poly_index, chk->GetPolyPassChk())) {
|
||||
if (cM3d_CrossY_Tri_Front(pm_vtx_tbl[tri->vtx0], pm_vtx_tbl[tri->vtx1], pm_vtx_tbl[tri->vtx2], chk->GetPointP()) && !ChkPolyThrough(poly_index, chk->GetPolyPassChk())) {
|
||||
chk->SetNowY(y);
|
||||
chk->SetPolyIndex(poly_index);
|
||||
return true;
|
||||
@@ -653,7 +657,7 @@ void cBgW::RwgShdwDraw(int index, cBgS_ShdwDraw* shdw) {
|
||||
if (rwg->next == 0xFFFF)
|
||||
break;
|
||||
index = rwg->next;
|
||||
JUT_ASSERT(0xbc6, 0 <= index && index < pm_bgd->m_t_num);
|
||||
JUT_ASSERT(VERSION_SELECT(3013, 3014, 3014, 3014), 0 <= index && index < pm_bgd->m_t_num);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -726,7 +730,7 @@ bool cBgW::ChkGrpThrough(int, cBgS_GrpPassChk*, int) {
|
||||
|
||||
/* 80249940-80249A18 .text GetGrpToRoomIndex__4cBgWCFi */
|
||||
u32 cBgW::GetGrpToRoomIndex(int grp_index) const {
|
||||
JUT_ASSERT(0xc77, 0 <= grp_index && grp_index < pm_bgd->m_g_num);
|
||||
JUT_ASSERT(VERSION_SELECT(3190, 3191, 3191, 3191), 0 <= grp_index && grp_index < pm_bgd->m_g_num);
|
||||
cBgD_Grp_t * g_tbl = pm_bgd->m_g_tbl;
|
||||
if (g_tbl[grp_index].m_parent == 0xFFFF || g_tbl[g_tbl[grp_index].m_parent].m_parent == 0xFFFF)
|
||||
return 0xFFFF;
|
||||
@@ -742,7 +746,7 @@ void cBgW::GetTrans(cXyz* dst) const {
|
||||
|
||||
/* 80249A58-80249B64 .text GetTriPnt__4cBgWCFiP4cXyzP4cXyzP4cXyz */
|
||||
void cBgW::GetTriPnt(int i_no, cXyz* p0, cXyz* p1, cXyz* p2) const {
|
||||
JUT_ASSERT(0xcb3, pm_bgd != NULL);
|
||||
JUT_ASSERT(VERSION_SELECT(3250, 3251, 3251, 3251), pm_bgd != NULL);
|
||||
|
||||
cBgD_Tri_t * tri = &pm_bgd->m_t_tbl[i_no];
|
||||
p0->set(pm_vtx_tbl[tri->vtx0]);
|
||||
|
||||
Reference in New Issue
Block a user