mirror of
https://github.com/isledecomp/isle.git
synced 2025-10-23 08:24:16 +00:00
Minor refactor SkateBoard setter in Pizza (#874)
This commit is contained in:

committed by
GitHub

parent
84b789ef9e
commit
6c89cd3315
@@ -8,13 +8,13 @@ DECOMP_SIZE_ASSERT(Pizza, 0x9c)
|
||||
// FUNCTION: LEGO1 0x10037ef0
|
||||
Pizza::Pizza()
|
||||
{
|
||||
this->m_unk0x7c = 0;
|
||||
this->m_unk0x80 = 0;
|
||||
this->m_unk0x84 = 0;
|
||||
this->m_unk0x88 = 0;
|
||||
this->m_unk0x8c = -1;
|
||||
this->m_unk0x98 = 0;
|
||||
this->m_unk0x90 = 0x80000000;
|
||||
m_unk0x7c = 0;
|
||||
m_unk0x80 = 0;
|
||||
m_skateboard = NULL;
|
||||
m_unk0x88 = 0;
|
||||
m_unk0x8c = -1;
|
||||
m_unk0x98 = 0;
|
||||
m_unk0x90 = 0x80000000;
|
||||
}
|
||||
|
||||
// FUNCTION: LEGO1 0x10038100
|
||||
|
@@ -42,10 +42,10 @@ MxResult SkateBoard::Create(MxDSAction& p_dsAction)
|
||||
if (result == SUCCESS) {
|
||||
m_world = CurrentWorld();
|
||||
m_world->Add(this);
|
||||
// The type `Pizza` is an educated guesss, inferred from VTable0xe4() below
|
||||
Pizza* findResult = (Pizza*) CurrentWorld()->Find(*g_isleScript, IsleScript::c_Pizza_Actor);
|
||||
if (findResult) {
|
||||
findResult->SetUnknown0x84((undefined*) this);
|
||||
|
||||
Pizza* pizza = (Pizza*) CurrentWorld()->Find(*g_isleScript, IsleScript::c_Pizza_Actor);
|
||||
if (pizza) {
|
||||
pizza->SetSkateboard(this);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user