diff options
| author | Tal Hayon <talhayon1@gmail.com> | 2022-01-29 15:54:09 +0200 |
|---|---|---|
| committer | Tal Hayon <talhayon1@gmail.com> | 2022-01-29 15:54:09 +0200 |
| commit | 1f2a791e49079d726d1e72151c8fce98def79f10 (patch) | |
| tree | f9ffced94a2c6cfe4634915e47abbca3f303dda5 /src/script.c | |
| parent | fd9049f59801a77ced44d85329ee871fda031d22 (diff) | |
Use PlayerControlMode in a few places
Diffstat (limited to 'src/script.c')
| -rw-r--r-- | src/script.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/script.c b/src/script.c index f6cb795f..fed1f183 100644 --- a/src/script.c +++ b/src/script.c @@ -1059,7 +1059,7 @@ void ScriptCommand_SetPlayerIdle(Entity* entity, ScriptExecutionContext* context } void ScriptCommand_EnablePlayerControl(Entity* entity, ScriptExecutionContext* context) { - gPlayerState.controlMode = 1; + gPlayerState.controlMode = CONTROL_1; } void ScriptCommand_DisablePlayerControl(Entity* entity, ScriptExecutionContext* context) { @@ -1169,7 +1169,7 @@ void ScriptCommand_0807E9F0(Entity* entity, ScriptExecutionContext* context) { } if (tmp) { sub_0807919C(); - gPlayerState.controlMode = 1; + gPlayerState.controlMode = CONTROL_1; } else { lbl: gActiveScriptInfo.commandSize = 0; |
