mirror of https://github.com/AxioDL/metaforce.git
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:
|
||||
|
@ -118,7 +121,6 @@ void CScriptWorldTeleporter::StartTransition(CStateManager& mgr) {
|
|||
x40_25_inTransition = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
} // namespace urde
|
||||
|
|
Loading…
Reference in New Issue