You've already forked pokecrystal-board
mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2025-04-09 05:44:44 -07:00
Use constants for bit/set/res more
This commit is contained in:
@@ -1081,7 +1081,7 @@ HandleNoise: ; e858c
|
||||
ret z
|
||||
; are we in a sfx channel?
|
||||
ld a, [wCurChannel]
|
||||
bit 2, a ; sfx
|
||||
bit NOISE_CHAN_F, a
|
||||
jr nz, .next
|
||||
; is ch8 on? (noise)
|
||||
ld hl, wChannel8Flags
|
||||
@@ -1330,7 +1330,7 @@ GetNoiseSample: ; e86c5
|
||||
call SetNoteDuration
|
||||
; check current channel
|
||||
ld a, [wCurChannel]
|
||||
bit 2, a ; are we in a sfx channel?
|
||||
bit NOISE_CHAN_F, a
|
||||
jr nz, .sfx
|
||||
ld hl, wChannel8Flags
|
||||
bit SOUND_CHANNEL_ON, [hl] ; is ch8 on? (noise)
|
||||
|
Reference in New Issue
Block a user