mirror of
https://github.com/projectPiki/pikmin2.git
synced 2024-11-27 15:20:37 +00:00
fixed MapCollision match break
This commit is contained in:
parent
01fb1262c8
commit
9da26df32f
@ -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
|
||||
|
@ -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
|
||||
|
||||
|
@ -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 {
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user