mirror of
https://github.com/isledecomp/isle.git
synced 2026-01-24 08:41:16 +00:00
Fixes
This commit is contained in:
parent
0d277f3ceb
commit
6691adb0e0
@ -4,6 +4,7 @@
|
||||
#include "decomp.h"
|
||||
#include "legopathactor.h"
|
||||
#include "mxcore.h"
|
||||
|
||||
class LegoPathBoundary;
|
||||
class LegoWorld;
|
||||
|
||||
@ -38,7 +39,7 @@ class LegoPathController : public MxCore {
|
||||
undefined4 FUN_10046770(LegoPathActor* p_actor);
|
||||
MxResult FUN_10046b30(LegoPathBoundary** p_path, MxS32& p_value);
|
||||
void Enable(MxBool p_enable);
|
||||
void FUN_10046bb0(LegoWorld* world);
|
||||
void FUN_10046bb0(LegoWorld* p_world);
|
||||
|
||||
private:
|
||||
undefined4 m_unk0x08; // 0x08
|
||||
|
||||
@ -9,7 +9,7 @@ DECOMP_SIZE_ASSERT(LegoPathPresenter, 0x54)
|
||||
|
||||
// STRING: LEGO1 0x10101ef0
|
||||
// GLOBAL: LEGO1 0x101020c4
|
||||
char* g_triggersSource = "TRIGGERS_SOURCE";
|
||||
const char* g_triggersSource = "TRIGGERS_SOURCE";
|
||||
|
||||
// FUNCTION: LEGO1 0x100448d0
|
||||
LegoPathPresenter::LegoPathPresenter()
|
||||
@ -68,11 +68,14 @@ void LegoPathPresenter::Destroy()
|
||||
void LegoPathPresenter::ReadyTickle()
|
||||
{
|
||||
LegoWorld* currentWorld = CurrentWorld();
|
||||
|
||||
if (currentWorld) {
|
||||
MxStreamChunk* chunk = m_subscriber->PopData();
|
||||
|
||||
if (chunk) {
|
||||
LegoPathController* controller = new LegoPathController();
|
||||
if (controller == NULL) {
|
||||
|
||||
if (controller != NULL) {
|
||||
EndAction();
|
||||
}
|
||||
else {
|
||||
@ -126,7 +129,7 @@ void LegoPathPresenter::ParseExtra()
|
||||
|
||||
strupr(extraCopy);
|
||||
|
||||
if (KeyValueStringParse(output, g_triggersSource, extraCopy) != 0) {
|
||||
if (KeyValueStringParse(output, g_triggersSource, extraCopy) != FALSE) {
|
||||
m_trigger = MxAtomId(output, e_lowerCase2);
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user