mirror of
https://github.com/isledecomp/isle.git
synced 2026-01-30 11:41:16 +00:00
Fixes / match
This commit is contained in:
parent
89159e9e36
commit
15e831a10d
@ -115,6 +115,7 @@ class LegoOmni : public MxOmni {
|
|||||||
MxBackgroundAudioManager* GetBackgroundAudioManager() { return m_bkgAudioManager; }
|
MxBackgroundAudioManager* GetBackgroundAudioManager() { return m_bkgAudioManager; }
|
||||||
MxTransitionManager* GetTransitionManager() { return m_transitionManager; }
|
MxTransitionManager* GetTransitionManager() { return m_transitionManager; }
|
||||||
MxDSAction& GetCurrentAction() { return m_action; }
|
MxDSAction& GetCurrentAction() { return m_action; }
|
||||||
|
|
||||||
inline void SetExit(MxBool p_exit) { m_exit = p_exit; };
|
inline void SetExit(MxBool p_exit) { m_exit = p_exit; };
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|||||||
@ -58,7 +58,7 @@ void InvokeAction(ExtraActionType p_actionId, MxAtomId& p_pAtom, int p_targetEnt
|
|||||||
break;
|
break;
|
||||||
case ExtraActionType_openram:
|
case ExtraActionType_openram:
|
||||||
if (!CheckIfEntityExists(TRUE, p_pAtom.GetInternal(), p_targetEntityId)) {
|
if (!CheckIfEntityExists(TRUE, p_pAtom.GetInternal(), p_targetEntityId)) {
|
||||||
Streamer()->Open(p_pAtom.GetInternal(), MxStreamer::e_DiskStream);
|
Streamer()->Open(p_pAtom.GetInternal(), MxStreamer::e_RAMStream);
|
||||||
Start(&action);
|
Start(&action);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
@ -66,6 +66,7 @@ void InvokeAction(ExtraActionType p_actionId, MxAtomId& p_pAtom, int p_targetEnt
|
|||||||
action.SetUnknown24(-2);
|
action.SetUnknown24(-2);
|
||||||
DeleteObject(action);
|
DeleteObject(action);
|
||||||
Streamer()->Close(p_pAtom.GetInternal());
|
Streamer()->Close(p_pAtom.GetInternal());
|
||||||
|
break;
|
||||||
case ExtraActionType_start:
|
case ExtraActionType_start:
|
||||||
if (!CheckIfEntityExists(TRUE, p_pAtom.GetInternal(), p_targetEntityId)) {
|
if (!CheckIfEntityExists(TRUE, p_pAtom.GetInternal(), p_targetEntityId)) {
|
||||||
Start(&action);
|
Start(&action);
|
||||||
@ -78,14 +79,7 @@ void InvokeAction(ExtraActionType p_actionId, MxAtomId& p_pAtom, int p_targetEnt
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case ExtraActionType_run:
|
case ExtraActionType_run:
|
||||||
_spawnl(
|
_spawnl(0, "\\lego\\sources\\main\\main.exe", "\\lego\\sources\\main\\main.exe", "/script", &p_pAtom, 0);
|
||||||
0,
|
|
||||||
"\\lego\\sources\\main\\main.exe",
|
|
||||||
"\\lego\\sources\\main\\main.exe",
|
|
||||||
"/script",
|
|
||||||
p_pAtom.GetInternal(),
|
|
||||||
0
|
|
||||||
);
|
|
||||||
break;
|
break;
|
||||||
case ExtraActionType_exit:
|
case ExtraActionType_exit:
|
||||||
Lego()->SetExit(TRUE);
|
Lego()->SetExit(TRUE);
|
||||||
@ -120,6 +114,7 @@ MxBool CheckIfEntityExists(MxBool p_enable, const char* p_filename, MxS32 p_enti
|
|||||||
void NotifyEntity(const char* p_filename, MxS32 p_entityId, LegoEntity* p_sender)
|
void NotifyEntity(const char* p_filename, MxS32 p_entityId, LegoEntity* p_sender)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
// FUNCTION: LEGO1 0x1003eae0
|
// FUNCTION: LEGO1 0x1003eae0
|
||||||
void ConvertHSVToRGB(float p_h, float p_s, float p_v, float* p_rOut, float* p_bOut, float* p_gOut)
|
void ConvertHSVToRGB(float p_h, float p_s, float p_v, float* p_rOut, float* p_bOut, float* p_gOut)
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user