diff options
author | PikalaxALT <PikalaxALT@users.noreply.github.com> | 2019-09-08 12:43:57 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-09-08 12:43:57 -0400 |
commit | 1bd678656c735bbeb603ccb80367c7a85f820f61 (patch) | |
tree | 750ff58e7b6e6917d7420516d9773acdfd1acea7 /src/scrcmd.c | |
parent | 00fef26c523fcebd068483e793e9df95a76e1d4e (diff) | |
parent | 39683e0362a63ecbffc289b1e45d3e10106fbc58 (diff) |
Merge pull request #743 from garakmon/metatile_labels
Name Metatiles
Diffstat (limited to 'src/scrcmd.c')
-rw-r--r-- | src/scrcmd.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/scrcmd.c b/src/scrcmd.c index d37e1180d..6084cfc5d 100644 --- a/src/scrcmd.c +++ b/src/scrcmd.c @@ -1902,14 +1902,14 @@ bool8 ScrCmd_setmetatile(struct ScriptContext *ctx) u16 x = VarGet(ScriptReadHalfword(ctx)); u16 y = VarGet(ScriptReadHalfword(ctx)); u16 metatileId = VarGet(ScriptReadHalfword(ctx)); - u16 v8 = VarGet(ScriptReadHalfword(ctx)); + u16 impassable = VarGet(ScriptReadHalfword(ctx)); x += 7; y += 7; - if (!v8) + if (!impassable) MapGridSetMetatileIdAt(x, y, metatileId); else - MapGridSetMetatileIdAt(x, y, metatileId | 0xC00); + MapGridSetMetatileIdAt(x, y, metatileId | (COLLISION_DIR_ALL << METATILE_COLLISION_SHIFT)); return FALSE; } |