Skip to content

Commit 8604942

Browse files
authored
CrimsonSun0xa4 (isledecomp#257)
1 parent d7ffde3 commit 8604942

2 files changed

Lines changed: 12 additions & 15 deletions

File tree

LEGORacers/src/crimsonsun0xa4.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,13 +149,13 @@ void CrimsonSun0xa4::FUN_00468e20()
149149
}
150150
}
151151

152-
// STUB: LEGORACERS 0x0046f810
152+
// FUNCTION: LEGORACERS 0x0046f810
153153
CrimsonSun0xa4::FieldAt0x6c8::FieldAt0x6c8()
154154
{
155155
Reset();
156156
}
157157

158-
// STUB: LEGORACERS 0x0046f880
158+
// FUNCTION: LEGORACERS 0x0046f880
159159
CrimsonSun0xa4::FieldAt0x6c8::~FieldAt0x6c8()
160160
{
161161
VTable0x08();

LEGORacers/src/crimsonsun0xa4entry.cpp

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -256,27 +256,24 @@ undefined4 CrimsonSun0xa4::Entry0x74c::GetUnk0x2c0() const
256256
return m_unk0x2c0;
257257
}
258258

259-
// STUB: LEGORACERS 0x004687a0
259+
// FUNCTION: LEGORACERS 0x004687a0
260260
void CrimsonSun0xa4::Entry0x74c::FUN_004687a0()
261261
{
262262
FUN_00468740();
263263

264-
ObscureIcon0x1a8* icon = m_unk0x6c8.GetUnk0x78();
265-
if (icon && (icon->GetFlags() & 1)) {
266-
icon->FUN_00471f00();
267-
icon->RemoveFromParent();
264+
if (m_unk0x6c8.GetUnk0x78() && (m_unk0x6c8.GetUnk0x78()->GetFlags() & 1)) {
265+
m_unk0x6c8.GetUnk0x78()->FUN_00471f00();
266+
m_unk0x6c8.GetUnk0x78()->RemoveFromParent();
268267
}
269268

270-
icon = m_unk0x6c8.GetUnk0x7c();
271-
if (icon && (icon->GetFlags() & 1)) {
272-
icon->FUN_00471f00();
273-
icon->RemoveFromParent();
269+
if (m_unk0x6c8.GetUnk0x7c() && (m_unk0x6c8.GetUnk0x7c()->GetFlags() & 1)) {
270+
m_unk0x6c8.GetUnk0x7c()->FUN_00471f00();
271+
m_unk0x6c8.GetUnk0x7c()->RemoveFromParent();
274272
}
275273

276-
icon = m_unk0x6c8.GetUnk0x80();
277-
if (icon && (icon->GetFlags() & 1)) {
278-
icon->FUN_00471f00();
279-
icon->RemoveFromParent();
274+
if (m_unk0x6c8.GetUnk0x80() && (m_unk0x6c8.GetUnk0x80()->GetFlags() & 1)) {
275+
m_unk0x6c8.GetUnk0x80()->FUN_00471f00();
276+
m_unk0x6c8.GetUnk0x80()->RemoveFromParent();
280277
}
281278

282279
m_unk0x2bc = 3;

0 commit comments

Comments
 (0)