fixed MapCollision match break

This commit is contained in:
HeartPiece 2022-07-17 15:23:54 +10:00
parent 01fb1262c8
commit 9da26df32f
3 changed files with 16 additions and 8 deletions

View File

@ -29,7 +29,7 @@ struct CaveOtakaraInfo {
int get_index(int);
void get_id(ID32&);
int getCaveIndex_FromID(ID32&);
CaveOtakara* getCaveIndex_FromID(ID32&);
ID32* getCaveID_FromIndex(int);
int m_count; // _00

View File

@ -9,7 +9,7 @@
#include "Matrixf.h"
struct MapCollision : public CNode {
virtual ~MapCollision(); // _08
virtual ~MapCollision() {} // _08
virtual void getBoundBox(BoundBox& boundingBox) { m_divider->getBoundBox(boundingBox); } // _0C

View File

@ -210,11 +210,19 @@ inline void CaveOtakaraInfo::get_id(ID32&)
* Address: ........
* Size: 000080
*/
inline int CaveOtakaraInfo::getCaveIndex_FromID(ID32&)
{
// UNUSED FUNCTION
return 0;
}
inline CaveOtakara* CaveOtakaraInfo::getCaveIndex_FromID(ID32& id) {
CaveOtakara* caveNode;
for (int i = 0; i < m_count; i++) {
caveNode = (CaveOtakara*)m_owner.getChildAt(i);
if ((caveNode->m_id == id.getID())) {
return caveNode;
} else {
continue;
}
}
return 0;
};
/*
* --INFO--
@ -1103,7 +1111,7 @@ lbl_801AE170:
* Size: 000060
* AUTOGEN
*/
MapCollision::~MapCollision() { }
// MapCollision::~MapCollision() { }
namespace Game {