summaryrefslogtreecommitdiff
path: root/engine/scripting.asm
diff options
context:
space:
mode:
authorPikalaxALT <PikalaxALT@gmail.com>2015-11-02 12:54:27 -0500
committerPikalaxALT <PikalaxALT@gmail.com>2015-11-02 12:54:27 -0500
commite0d6e9ca7acf8a23ad70fad405ddf1073dcd4291 (patch)
treef0a51af3f76bdde746d584c1d940bbedef9d99f2 /engine/scripting.asm
parentd35cfad0de085fab1b0c40c7f0497c9b745cb7b2 (diff)
Fix NorthMapObjectIndexBuffer etc
Diffstat (limited to 'engine/scripting.asm')
-rw-r--r--engine/scripting.asm13
1 files changed, 7 insertions, 6 deletions
diff --git a/engine/scripting.asm b/engine/scripting.asm
index 4461c8fe4..5a3895038 100644
--- a/engine/scripting.asm
+++ b/engine/scripting.asm
@@ -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