Skip to content

Commit

Permalink
Revert #5033 change to MapHeaderRunScriptType (#5975)
Browse files Browse the repository at this point in the history
  • Loading branch information
mrgriffin authored Jan 8, 2025
1 parent bb781f2 commit 4c4137d
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/script.c
Original file line number Diff line number Diff line change
Expand Up @@ -317,11 +317,7 @@ void MapHeaderRunScriptType(u8 tag)
{
const u8 *ptr = MapHeaderGetScriptTable(tag);
if (ptr)
{
struct ScriptContext ctx;
if (RunScriptImmediatelyUntilEffect(SCREFF_V1 | SCREFF_HARDWARE, ptr, &ctx))
ScriptContext_ContinueScript(&ctx);
}
RunScriptImmediately(ptr);
}

const u8 *MapHeaderCheckScriptTable(u8 tag)
Expand Down

0 comments on commit 4c4137d

Please sign in to comment.