Use ~X instead of $ff ^ X

This commit is contained in:
Rangi
2021-11-23 20:37:18 -05:00
parent ab0f9c287a
commit e706b878d9
16 changed files with 23 additions and 23 deletions

View File

@@ -759,7 +759,7 @@ Script_musicfadeout:
call GetScriptByte
ld [wMusicFadeID + 1], a
call GetScriptByte
and $ff ^ (1 << MUSIC_FADE_IN_F)
and ~(1 << MUSIC_FADE_IN_F)
ld [wMusicFade], a
ret
@@ -1159,7 +1159,7 @@ Script_startbattle:
call BufferScreen
predef StartBattle
ld a, [wBattleResult]
and $ff ^ BATTLERESULT_BITMASK
and ~BATTLERESULT_BITMASK
ld [wScriptVar], a
ret
@@ -1175,7 +1175,7 @@ Script_reloadmapafterbattle:
ld d, [hl]
ld [hl], 0
ld a, [wBattleResult]
and $ff ^ BATTLERESULT_BITMASK
and ~BATTLERESULT_BITMASK
cp LOSE
jr nz, .notblackedout
ld b, BANK(Script_BattleWhiteout)