mirror of
https://github.com/zeldaret/tmc
synced 2026-06-14 06:25:18 -04:00
improved signature of StartPlayerScript
This commit is contained in:
+2
-2
@@ -295,11 +295,11 @@ void UnloadCutsceneData(Entity* entity) {
|
||||
}
|
||||
}
|
||||
|
||||
void StartPlayerScript(u32 unk1) {
|
||||
void StartPlayerScript(u16* unk1) {
|
||||
Entity* player;
|
||||
|
||||
_DmaZero(&gPlayerScriptExecutionContext, sizeof(gPlayerScriptExecutionContext));
|
||||
gPlayerScriptExecutionContext.unk_00 = (u16*)unk1;
|
||||
gPlayerScriptExecutionContext.unk_00 = unk1;
|
||||
player = &gPlayerEntity;
|
||||
*(ScriptExecutionContext**)&player->cutsceneBeh = &gPlayerScriptExecutionContext;
|
||||
gPlayerState.playerAction = 0x1c;
|
||||
|
||||
@@ -752,7 +752,7 @@ void sub_0807E898(Entity* unk1, ScriptExecutionContext* unk2) {
|
||||
}
|
||||
|
||||
void sub_0807E8C4(Entity* unk1, ScriptExecutionContext* unk2) {
|
||||
StartPlayerScript(GetNextScriptCommandWordAfterCommandMetadata(unk2->unk_00));
|
||||
StartPlayerScript((u16*)GetNextScriptCommandWordAfterCommandMetadata(unk2->unk_00));
|
||||
}
|
||||
|
||||
void sub_0807E8D4(Entity* unk1, ScriptExecutionContext* unk2) {
|
||||
|
||||
Reference in New Issue
Block a user