Skip to content

Commit 93c6890

Browse files
committed
Matches
1 parent 1c0b368 commit 93c6890

5 files changed

Lines changed: 19 additions & 21 deletions

File tree

GolDP/include/amberlens0x344.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ class AmberLens0x344 : public AmberLensBase0x120 {
3838
// SYNTHETIC: GOLDP 0x10017a60
3939
// AmberLens0x344::`vector deleting destructor'
4040

41-
JadeOrbit0x220* GetUnk0x04() { return m_unk0x04; }
41+
JadeOrbit0xd0* GetUnk0x04() { return m_unk0x04; }
4242

4343
protected:
4444
friend class BronzeFalcon0xc8770;

GolDP/include/amberlensbase0x120.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
#include "decomp.h"
66
#include "types.h"
77

8-
class JadeOrbit0x220;
8+
class JadeOrbit0xd0;
99
struct Rect;
1010

1111
// VTABLE: GOLDP 0x10056cc0
@@ -28,7 +28,7 @@ class AmberLensBase0x120 {
2828
// SYNTHETIC: GOLDP 0x1001bf90
2929
// AmberLensBase0x120::`scalar deleting destructor'
3030

31-
JadeOrbit0x220* m_unk0x04; // 0x04
31+
JadeOrbit0xd0* m_unk0x04; // 0x04
3232
LegoFloat m_unk0x08; // 0x08
3333
LegoFloat m_unk0x0c; // 0x0c
3434
LegoFloat m_unk0x10; // 0x10

GolDP/include/jadeorbit0x220.h

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,18 @@
66
#include "types.h"
77

88
// SIZE 0x220
9-
class JadeOrbit0x220 : public JadeOrbit0xd0 {
9+
class JadeOrbit0x220 {
1010
public:
11-
GolMatrix4 m_unk0xd0; // 0xd0
12-
GolMatrix4 m_unk0x110; // 0x110
13-
GolMatrix4 m_unk0x150; // 0x150
14-
GolMatrix4 m_unk0x190; // 0x190
15-
GolMatrix4 m_unk0x1d0; // 0x1d0
16-
LegoFloat m_unk0x210; // 0x210
17-
LegoFloat m_unk0x214; // 0x214
18-
LegoFloat m_unk0x218; // 0x218
19-
LegoFloat m_unk0x21c; // 0x21c
11+
JadeOrbit0xd0 m_unk0x00; // 0x00
12+
GolMatrix4 m_unk0xd0; // 0xd0
13+
GolMatrix4 m_unk0x110; // 0x110
14+
GolMatrix4 m_unk0x150; // 0x150
15+
GolMatrix4 m_unk0x190; // 0x190
16+
GolMatrix4 m_unk0x1d0; // 0x1d0
17+
LegoFloat m_unk0x210; // 0x210
18+
LegoFloat m_unk0x214; // 0x214
19+
LegoFloat m_unk0x218; // 0x218
20+
LegoFloat m_unk0x21c; // 0x21c
2021
};
2122

2223
#endif // JADEORBIT0X220_H

GolDP/src/amberlens0x344.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ DECOMP_SIZE_ASSERT(AmberLens0x344, 0x344)
88
// FUNCTION: GOLDP 0x10001ea0
99
AmberLens0x344::AmberLens0x344()
1010
{
11-
m_unk0x04 = &m_unk0x120;
11+
m_unk0x04 = &m_unk0x120.m_unk0x00;
1212
m_renderer = NULL;
1313
}
1414

GolDP/src/greyfalconnode0x1c.cpp

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -56,15 +56,12 @@ void GreyFalconNode0x1c::FUN_10014a60(const GolMatrix4& p_m1, const GolMatrix4&
5656
obj = m_unk0x18;
5757
end = &m_unk0x18[m_unk0x10];
5858
for (; obj < end; obj++) {
59-
if (obj->m_unk0x04 != NULL) {
60-
GolMath::FUN_1002f3a0(
61-
obj->m_unk0x10,
62-
static_cast<JadeOrbit0xd0*>(obj->m_unk0x04)->m_unk0x50,
63-
&obj->m_unk0x50
64-
);
59+
JadeOrbit0xd0* parent = static_cast<JadeOrbit0xd0*>(obj->m_unk0x04);
60+
if (parent == NULL) {
61+
GolMath::FUN_1002f3a0(obj->m_unk0x10, p_m1, &obj->m_unk0x50);
6562
}
6663
else {
67-
GolMath::FUN_1002f3a0(obj->m_unk0x10, p_m1, &obj->m_unk0x50);
64+
GolMath::FUN_1002f3a0(obj->m_unk0x10, parent->m_unk0x50, &obj->m_unk0x50);
6865
}
6966
}
7067
}

0 commit comments

Comments
 (0)