mirror of https://github.com/AxioDL/metaforce.git
Decomp fix for CScriptTrigger::Touch
This commit is contained in:
parent
a9a43c1a20
commit
d6e8d373ac
|
@ -233,8 +233,10 @@ void CScriptTrigger::Touch(CActor& act, CStateManager& mgr) {
|
||||||
auto testFlags = ETriggerFlags::None;
|
auto testFlags = ETriggerFlags::None;
|
||||||
const TCastToPtr<CPlayer> pl(act);
|
const TCastToPtr<CPlayer> pl(act);
|
||||||
if (pl) {
|
if (pl) {
|
||||||
if (x128_forceMagnitude > 0.f && True(x12c_flags & ETriggerFlags::DetectPlayer) &&
|
if (x128_forceMagnitude > 0.f && True(x12c_flags & ETriggerFlags::DetectPlayer)) {
|
||||||
mgr.GetLastTriggerId() == kInvalidUniqueId) {
|
if (mgr.GetLastTriggerId() != kInvalidUniqueId) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
mgr.SetLastTriggerId(x8_uid);
|
mgr.SetLastTriggerId(x8_uid);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue