mirror of
https://github.com/isledecomp/isle-portable.git
synced 2024-11-26 17:36:12 -05:00
implement/match FUN_1003ef60() (#740)
This commit is contained in:
parent
38cfad8b17
commit
97ebb22c42
1 changed files with 27 additions and 2 deletions
|
@ -1,5 +1,8 @@
|
||||||
#include "legoutils.h"
|
#include "legoutils.h"
|
||||||
|
|
||||||
|
#include "act1state.h"
|
||||||
|
#include "islepathactor.h"
|
||||||
|
#include "legogamestate.h"
|
||||||
#include "legoinputmanager.h"
|
#include "legoinputmanager.h"
|
||||||
#include "legonamedtexture.h"
|
#include "legonamedtexture.h"
|
||||||
#include "legoomni.h"
|
#include "legoomni.h"
|
||||||
|
@ -308,11 +311,33 @@ void SetAppCursor(WPARAM p_wparam)
|
||||||
PostMessageA(MxOmni::GetInstance()->GetWindowHandle(), 0x5400, p_wparam, 0);
|
PostMessageA(MxOmni::GetInstance()->GetWindowHandle(), 0x5400, p_wparam, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
// STUB: LEGO1 0x1003ef60
|
// FUNCTION: LEGO1 0x1003ef60
|
||||||
MxBool FUN_1003ef60()
|
MxBool FUN_1003ef60()
|
||||||
{
|
{
|
||||||
|
Act1State* act1State = (Act1State*) GameState()->GetState("Act1State");
|
||||||
|
|
||||||
|
if (GameState()->m_currentArea != LegoGameState::e_elevride &&
|
||||||
|
GameState()->m_currentArea != LegoGameState::e_elevride2 &&
|
||||||
|
GameState()->m_currentArea != LegoGameState::e_elevopen &&
|
||||||
|
GameState()->m_currentArea != LegoGameState::e_seaview &&
|
||||||
|
GameState()->m_currentArea != LegoGameState::e_observe &&
|
||||||
|
GameState()->m_currentArea != LegoGameState::e_elevdown &&
|
||||||
|
GameState()->m_currentArea != LegoGameState::e_garadoor &&
|
||||||
|
GameState()->m_currentArea != LegoGameState::e_polidoor) {
|
||||||
|
|
||||||
|
if (CurrentActor() == NULL || !CurrentActor()->IsA("TowTrack")) {
|
||||||
|
if (CurrentActor() == NULL || !CurrentActor()->IsA("Ambulance")) {
|
||||||
|
MxU32 unk0x18 = act1State->GetUnknown18();
|
||||||
|
|
||||||
|
if (unk0x18 != 10 && unk0x18 != 8 && unk0x18 != 3) {
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
// STUB: LEGO1 0x1003f050
|
// STUB: LEGO1 0x1003f050
|
||||||
MxS32 FUN_1003f050(MxS32)
|
MxS32 FUN_1003f050(MxS32)
|
||||||
|
|
Loading…
Reference in a new issue