review changes mystery event

This commit is contained in:
DizzyEggg 2018-01-21 21:32:30 +01:00
parent f53a39e7a2
commit fbf91fabcf

View file

@ -86,8 +86,8 @@ u32 RunMysteryEventScript(u8 *script)
{
struct ScriptContext *ctx = &sMysteryEventScriptContext;
InitMysteryEventScript(ctx, script);
while (RunMysteryEventScriptCommand(ctx))
;
while (RunMysteryEventScriptCommand(ctx));
return ctx->data[2];
}
@ -208,7 +208,7 @@ bool8 MEScrCmd_setmsg(struct ScriptContext *ctx)
{
u8 value = ScriptReadByte(ctx);
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);
return FALSE;
}