mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-07-04 06:35:52 +00:00
CScriptWorldTeleporter: Unindent code in StartTransition()
We can make use of an early-return to unindent code by one level.
This commit is contained in:
parent
d0233b7767
commit
40ede53949
@ -97,7 +97,10 @@ void CScriptWorldTeleporter::AcceptScriptMsg(EScriptObjectMessage msg, TUniqueId
|
||||
}
|
||||
|
||||
void CScriptWorldTeleporter::StartTransition(CStateManager& mgr) {
|
||||
if (!x40_25_inTransition) {
|
||||
if (x40_25_inTransition) {
|
||||
return;
|
||||
}
|
||||
|
||||
const auto& transMgr = mgr.WorldTransManager();
|
||||
switch (x3c_type) {
|
||||
case ETeleporterType::NoTransition:
|
||||
@ -119,6 +122,5 @@ void CScriptWorldTeleporter::StartTransition(CStateManager& mgr) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
} // namespace urde
|
||||
|
Loading…
x
Reference in New Issue
Block a user