You've already forked pokecrystal-board
mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2025-09-08 08:13:02 -07:00
Fix NorthMapObjectIndexBuffer etc
This commit is contained in:
@@ -351,24 +351,24 @@ Function97df9:: ; 97df9
|
||||
Function97e08:: ; 97e08
|
||||
ld hl, wd6de
|
||||
xor a
|
||||
.asm_97e0c
|
||||
.loop
|
||||
ld [hMapObjectIndexBuffer], a
|
||||
ld a, [hl]
|
||||
and a
|
||||
jr z, .asm_97e19
|
||||
jr z, .skip
|
||||
push hl
|
||||
ld b, h
|
||||
ld c, l
|
||||
call Function97e79
|
||||
pop hl
|
||||
|
||||
.asm_97e19
|
||||
.skip
|
||||
ld de, $0006
|
||||
add hl, de
|
||||
ld a, [hMapObjectIndexBuffer]
|
||||
inc a
|
||||
cp $4
|
||||
jr nz, .asm_97e0c
|
||||
jr nz, .loop
|
||||
ret
|
||||
; 97e25
|
||||
|
||||
|
||||
@@ -1209,28 +1209,29 @@ ApplyPersonFacing: ; 0x9728b
|
||||
call SetSpriteDirection
|
||||
ld hl, VramState
|
||||
bit 6, [hl]
|
||||
jr nz, .asm_972b5 ; 0x972b0 $3
|
||||
call Function972bc
|
||||
.asm_972b5
|
||||
jr nz, .text_state ; 0x972b0 $3
|
||||
call .DisableTextTiles
|
||||
.text_state
|
||||
call UpdateSprites
|
||||
ret
|
||||
|
||||
.not_visible
|
||||
pop de
|
||||
scf
|
||||
ret
|
||||
; 0x972bc
|
||||
|
||||
Function972bc: ; 0x972bc
|
||||
.DisableTextTiles: ; 0x972bc
|
||||
call Function217a
|
||||
hlcoord 0, 0
|
||||
ld bc, SCREEN_WIDTH * SCREEN_HEIGHT
|
||||
.asm_972c5
|
||||
.loop
|
||||
res 7, [hl]
|
||||
inc hl
|
||||
dec bc
|
||||
ld a, b
|
||||
or c
|
||||
jr nz, .asm_972c5 ; 0x972cb $f8
|
||||
jr nz, .loop ; 0x972cb $f8
|
||||
ret
|
||||
; 0x972ce
|
||||
|
||||
|
||||
Reference in New Issue
Block a user