th04/main: Fix the crash when beating Yuuka

I sure hope that this was the last one of that sort.
This commit is contained in:
nmlgc 2014-07-14 03:20:40 +02:00
parent f1d931c639
commit 48961cde6b
1 changed files with 26 additions and 13 deletions

View File

@ -15379,20 +15379,33 @@ loc_1B81C: ; CODE XREF: seg003:7D79j
mov byte_266ED, 0 mov byte_266ED, 0
jmp loc_1B8EA jmp loc_1B8EA
; --------------------------------------------------------------------------- ; ---------------------------------------------------------------------------
db 0E8h, 34h, 0FAh, 0E8h, 0FDh, 2Dh, 0Ah, 0C0h, 75h, 0Ah call sub_1B282
db 81h, 3Eh, 0DAh, 53h, 0C4h, 9, 0Fh, 8Ch, 8Bh, 0, 6Ah call sub_1E64E
db 1, 0E8h, 18h, 0A4h, 0FEh, 6, 0D9h, 53h, 81h, 3Eh, 0DAh or al, al
db 53h, 0C4h, 9, 7Dh, 7, 0C6h, 6, 0DFh, 53h, 1, 0EBh, 5 jnz short loc_1B85F
db 0C6h, 6, 0DFh, 53h, 0, 0C7h, 6, 0DAh, 53h, 2 dup(0) cmp word_2671A, 9C4h
db 0C6h, 6, 0DDh, 53h, 0, 0C7h, 6, 0A4h, 3, 64h, 0, 0C6h jl loc_1B8EA
db 6, 93h
; ---------------------------------------------------------------------------
; START OF FUNCTION CHUNK FOR sub_1CD6E
loc_1B890: ; CODE XREF: sub_1CD6E:loc_1CD8Fj loc_1B85F:
push bx ; jumptable 0001CD8F case 0 push 1
add bx, bp call sub_15C7C
push si inc byte_26719
cmp word_2671A, 9C4h
jge short loc_1B877
mov byte_2671F, 1
jmp short loc_1B87C
; ---------------------------------------------------------------------------
loc_1B877:
mov byte_2671F, 0
loc_1B87C:
mov word_2671A, 0
mov byte_2671D, 0
mov word_216E4, 64h
mov byte_266D3, 1
jmp short loc_1B8EA
; ---------------------------------------------------------------------------
inc word_2671A inc word_2671A
cmp word_2671A, 10h cmp word_2671A, 10h
jnz short loc_1B8A4 jnz short loc_1B8A4