mirror of
https://github.com/isledecomp/isle.git
synced 2025-10-24 08:54:15 +00:00
Implement/match LegoPathController::Read (#904)
* Implement/match LegoPathController::Read * Add size asserts
This commit is contained in:
committed by
GitHub
parent
5df947dbb9
commit
f442f1a2f7
@@ -70,9 +70,9 @@ void LegoPathPresenter::Destroy()
|
||||
// FUNCTION: LEGO1 0x10044c20
|
||||
void LegoPathPresenter::ReadyTickle()
|
||||
{
|
||||
LegoWorld* currentWorld = CurrentWorld();
|
||||
LegoWorld* world = CurrentWorld();
|
||||
|
||||
if (currentWorld) {
|
||||
if (world) {
|
||||
MxStreamChunk* chunk = m_subscriber->PopData();
|
||||
|
||||
if (chunk) {
|
||||
@@ -84,8 +84,8 @@ void LegoPathPresenter::ReadyTickle()
|
||||
else {
|
||||
ParseExtra();
|
||||
|
||||
controller->VTable0x14(chunk->GetData(), m_action->GetLocation(), m_trigger);
|
||||
currentWorld->AddPath(controller);
|
||||
controller->Create(chunk->GetData(), m_action->GetLocation(), m_trigger);
|
||||
world->AddPath(controller);
|
||||
|
||||
m_subscriber->FreeDataChunk(chunk);
|
||||
ProgressTickleState(MxPresenter::e_starting);
|
||||
|
||||
Reference in New Issue
Block a user