mirror of https://github.com/AxioDL/metaforce.git
CScriptMemoryRelay: Brace conditionals where applicable
This commit is contained in:
parent
c3d6324ea1
commit
beb7884b54
|
@ -17,16 +17,18 @@ CScriptMemoryRelay::CScriptMemoryRelay(TUniqueId uid, std::string_view name, con
|
||||||
void CScriptMemoryRelay::Accept(IVisitor& visitor) { visitor.Visit(this); }
|
void CScriptMemoryRelay::Accept(IVisitor& visitor) { visitor.Visit(this); }
|
||||||
|
|
||||||
void CScriptMemoryRelay::AcceptScriptMsg(EScriptObjectMessage msg, TUniqueId objId, CStateManager& stateMgr) {
|
void CScriptMemoryRelay::AcceptScriptMsg(EScriptObjectMessage msg, TUniqueId objId, CStateManager& stateMgr) {
|
||||||
if (x34_26_ignoreMessages)
|
if (x34_26_ignoreMessages) {
|
||||||
return;
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (msg == EScriptObjectMessage::Deactivate) {
|
if (msg == EScriptObjectMessage::Deactivate) {
|
||||||
stateMgr.GetRelayTracker()->RemoveRelay(xc_editorId);
|
stateMgr.GetRelayTracker()->RemoveRelay(xc_editorId);
|
||||||
return;
|
return;
|
||||||
} else if (msg == EScriptObjectMessage::Activate) {
|
} else if (msg == EScriptObjectMessage::Activate) {
|
||||||
stateMgr.GetRelayTracker()->AddRelay(xc_editorId);
|
stateMgr.GetRelayTracker()->AddRelay(xc_editorId);
|
||||||
if (!x34_25_skipSendActive)
|
if (!x34_25_skipSendActive) {
|
||||||
SendScriptMsgs(EScriptObjectState::Active, stateMgr, EScriptObjectMessage::None);
|
SendScriptMsgs(EScriptObjectState::Active, stateMgr, EScriptObjectMessage::None);
|
||||||
|
}
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue