review changes mystery event
This commit is contained in:
parent
f53a39e7a2
commit
fbf91fabcf
1 changed files with 3 additions and 3 deletions
|
@ -86,8 +86,8 @@ u32 RunMysteryEventScript(u8 *script)
|
||||||
{
|
{
|
||||||
struct ScriptContext *ctx = &sMysteryEventScriptContext;
|
struct ScriptContext *ctx = &sMysteryEventScriptContext;
|
||||||
InitMysteryEventScript(ctx, script);
|
InitMysteryEventScript(ctx, script);
|
||||||
while (RunMysteryEventScriptCommand(ctx))
|
while (RunMysteryEventScriptCommand(ctx));
|
||||||
;
|
|
||||||
return ctx->data[2];
|
return ctx->data[2];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -208,7 +208,7 @@ bool8 MEScrCmd_setmsg(struct ScriptContext *ctx)
|
||||||
{
|
{
|
||||||
u8 value = ScriptReadByte(ctx);
|
u8 value = ScriptReadByte(ctx);
|
||||||
u8 *str = (u8 *)(ScriptReadWord(ctx) - ctx->data[1] + ctx->data[0]);
|
u8 *str = (u8 *)(ScriptReadWord(ctx) - ctx->data[1] + ctx->data[0]);
|
||||||
if (value == 255 || value == ctx->data[2])
|
if (value == 0xFF || value == ctx->data[2])
|
||||||
StringExpandPlaceholders(gStringVar4, str);
|
StringExpandPlaceholders(gStringVar4, str);
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue