mirror of https://github.com/AxioDL/metaforce.git
CScriptCameraWaypoint: Fix Arrived
This commit is contained in:
parent
1571531cd7
commit
82aa99f858
|
@ -18,7 +18,7 @@ void CScriptCameraWaypoint::Accept(IVisitor& visitor) { visitor.Visit(this); }
|
||||||
|
|
||||||
void CScriptCameraWaypoint::AcceptScriptMsg(EScriptObjectMessage msg, TUniqueId uid, CStateManager& mgr) {
|
void CScriptCameraWaypoint::AcceptScriptMsg(EScriptObjectMessage msg, TUniqueId uid, CStateManager& mgr) {
|
||||||
CActor::AcceptScriptMsg(msg, uid, mgr);
|
CActor::AcceptScriptMsg(msg, uid, mgr);
|
||||||
if (!GetActive() && msg == EScriptObjectMessage::Arrived)
|
if (GetActive() && msg == EScriptObjectMessage::Arrived)
|
||||||
SendScriptMsgs(EScriptObjectState::Arrived, mgr, EScriptObjectMessage::None);
|
SendScriptMsgs(EScriptObjectState::Arrived, mgr, EScriptObjectMessage::None);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue