Skip to content

Commit 4c46c93

Browse files
committed
Better syntax here
1 parent 5bbd464 commit 4c46c93

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

‎scripts/CeladonHotel.asm‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,10 +133,11 @@ CeladonLaprasGuyText:
133133
CeladonLaprasGuyLeaves:
134134
; if the guy who can walk left and right is on a specific position we have to make him get out of the way first
135135
ld a, [wSprite04StateData2MapX]
136-
cp 8
136+
sub 4 ; MapX is offset by 4 from actual coordinate
137+
cp 4
137138
ld de, CeladonLoserMovement
138139
jr z, .loserinway
139-
cp 9
140+
cp 5
140141
ld de, CeladonLoserMovement2
141142
jr z, .loserinway
142143
jr .losernotinway

0 commit comments

Comments
 (0)