diff options
author | Remy Oukaour <remy.oukaour@gmail.com> | 2018-01-11 12:00:01 -0500 |
---|---|---|
committer | Remy Oukaour <remy.oukaour@gmail.com> | 2018-01-11 14:27:19 -0500 |
commit | 94d6a327218fc56753238b424df208245092d96c (patch) | |
tree | 25688edfc18dacb965f6ecf9691691e68888b845 /engine/scripting.asm | |
parent | a436bbc23bb7ba723a7f897ddbe9d25830169612 (diff) |
Use maskbits some more
Diffstat (limited to 'engine/scripting.asm')
-rw-r--r-- | engine/scripting.asm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engine/scripting.asm b/engine/scripting.asm index b5489917b..a7650351a 100644 --- a/engine/scripting.asm +++ b/engine/scripting.asm @@ -614,7 +614,7 @@ GetPocketName: ld a, [wItemAttributeParamBuffer] dec a ld hl, .Pockets - and 3 + maskbits NUM_POCKETS +- 1 add a ld e, a ld d, 0 @@ -2474,7 +2474,7 @@ Script_warpfacing: ; parameters: facing, map_group, map_id, x, y call GetScriptByte - and $3 + maskbits NUM_DIRECTIONS +- 1 ld c, a ld a, [wPlayerSpriteSetupFlags] set 5, a |