diff options
| author | Tal Hayon <talhayon1@gmail.com> | 2022-04-29 10:01:15 +0300 |
|---|---|---|
| committer | Tal Hayon <talhayon1@gmail.com> | 2022-04-29 10:01:15 +0300 |
| commit | 82f40860adf700bcb19f38f91ee65fde6a116710 (patch) | |
| tree | f489cdf579fa51688211b61fdde96fceaa46c58d /src/script.c | |
| parent | 95df526a4f890181b0e680cadb15caaad26fd6a9 (diff) | |
Remove some gotos
Diffstat (limited to 'src/script.c')
| -rw-r--r-- | src/script.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/script.c b/src/script.c index 22725cc9..93b919c0 100644 --- a/src/script.c +++ b/src/script.c @@ -1150,10 +1150,13 @@ void ScriptCommand_0807E9E4(Entity* entity, ScriptExecutionContext* context) { } void ScriptCommand_0807E9F0(Entity* entity, ScriptExecutionContext* context) { - u32 tmp; + bool32 tmp; sub_0801E00C(); - tmp = 1; + tmp = TRUE; switch (gFuseInfo._0) { + default: + tmp = FALSE; + break; case 2: gPlayerState.controlMode = CONTROL_DISABLED; gPauseMenuOptions.disabled = tmp; @@ -1162,14 +1165,12 @@ void ScriptCommand_0807E9F0(Entity* entity, ScriptExecutionContext* context) { case 1: context->condition = 0; break; - default: - goto lbl; } + if (tmp) { PlayerResetStateFromFusion(); gPlayerState.controlMode = CONTROL_1; } else { - lbl: gActiveScriptInfo.commandSize = 0; } } |
