Scroll fix
This commit is contained in:
12
scroll.asm
12
scroll.asm
@@ -177,20 +177,20 @@ ScrollX: ;change the X offset variables
|
|||||||
rts
|
rts
|
||||||
|
|
||||||
LimitXCamera:
|
LimitXCamera:
|
||||||
cmp #$0080 : !bge +
|
cmp #$0079 : !bge +
|
||||||
lda #$0000 : bra .end
|
lda #$0000 : bra .end
|
||||||
+ cmp #$0181 : !blt +
|
+ cmp #$0178 : !blt +
|
||||||
lda #$0180
|
lda #$0178
|
||||||
+ !sub #$0080
|
+ !sub #$0078
|
||||||
.end rts
|
.end rts
|
||||||
|
|
||||||
CheckRoomLayoutX:
|
CheckRoomLayoutX:
|
||||||
jsr LoadRoomLayout ;switches to 8-bit
|
jsr LoadRoomLayout ;switches to 8-bit
|
||||||
cmp #$04 : !blt .lock
|
cmp #$04 : !blt .lock
|
||||||
cmp #$05 : bne +
|
cmp #$05 : bne +
|
||||||
lda $04 : cmp #$f8 : beq .lock
|
lda $06 : cmp #$ff : beq .lock
|
||||||
+ cmp #$06 : bne .free
|
+ cmp #$06 : bne .free
|
||||||
lda $04 : cmp #$f8 : bne .lock
|
lda $06 : cmp #$ff : bne .lock
|
||||||
.free rep #$30 : clc : rts
|
.free rep #$30 : clc : rts
|
||||||
.lock rep #$30 : sec : rts
|
.lock rep #$30 : sec : rts
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user