mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-06-08 10:33:27 +00:00
Underp teh derp in CScriptActorRotate
This commit is contained in:
parent
7f27a56e61
commit
51811680c3
@ -25,18 +25,16 @@ void CScriptActorRotate::Accept(IVisitor& visitor)
|
|||||||
|
|
||||||
void CScriptActorRotate::AcceptScriptMsg(EScriptObjectMessage msg, TUniqueId uid, CStateManager& mgr)
|
void CScriptActorRotate::AcceptScriptMsg(EScriptObjectMessage msg, TUniqueId uid, CStateManager& mgr)
|
||||||
{
|
{
|
||||||
bool acceptCalled = false;
|
|
||||||
if (msg == EScriptObjectMessage::Activate)
|
if (msg == EScriptObjectMessage::Activate)
|
||||||
{
|
{
|
||||||
CEntity::AcceptScriptMsg(msg, uid, mgr);
|
CEntity::AcceptScriptMsg(msg, uid, mgr);
|
||||||
acceptCalled = true;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (msg == EScriptObjectMessage::Action || msg == EScriptObjectMessage::Next
|
if (msg == EScriptObjectMessage::Action || msg == EScriptObjectMessage::Next
|
||||||
|| (msg == EScriptObjectMessage::Registered && x58_27_updateOnCreation))
|
|| (msg == EScriptObjectMessage::Registered && x58_27_updateOnCreation))
|
||||||
UpdateActors(msg == EScriptObjectMessage::Next, mgr);
|
UpdateActors(msg == EScriptObjectMessage::Next, mgr);
|
||||||
|
|
||||||
if (!acceptCalled)
|
|
||||||
CEntity::AcceptScriptMsg(msg, uid, mgr);
|
CEntity::AcceptScriptMsg(msg, uid, mgr);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user