From 9739cbcead94f5e087e47b63787f6dd56f509d7a Mon Sep 17 00:00:00 2001 From: luckytyphlosion Date: Fri, 12 Jun 2015 18:41:23 -0400 Subject: Complete unfinished function. --- home.asm | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/home.asm b/home.asm index 70f9c715..dd9a658b 100644 --- a/home.asm +++ b/home.asm @@ -2363,7 +2363,22 @@ Func_3040:: ; 3040 (0:3040) push bc push de push hl - ld a, + ld a,[rOBP0] + ld b,a + ld a,[wdef3] + cp b + jr z,.asm_305c + ld b,BANK(Func_7256c) ; 1c:656c + ld hl,Func_7256c + ld c,$1 + call Bankswitch +.asm_305c + pop hl + pop de + pop bc + pop af + ret + ; not zero if an NPC movement script is running, the player character is ; automatically stepping down from a door, or joypad states are being simulated IsPlayerCharacterBeingControlledByGame:: ; 30fd (0:30fd) -- cgit v1.3.1-sl0p