From 01475f313a37471ac17b1f8fa3b40170445ba835 Mon Sep 17 00:00:00 2001 From: codemann8 Date: Wed, 26 Oct 2022 07:54:05 -0500 Subject: [PATCH] Fixed fake world handling for IB transitions --- owrando.asm | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/owrando.asm b/owrando.asm index 3472bfa..a046b8d 100644 --- a/owrando.asm +++ b/owrando.asm @@ -631,7 +631,12 @@ OWShuffle: ;look up transitions in current area in table OWEdgeOffsets ;offset is (8bytes * OW Slot ID) + (2bytes * direction) asl : rep #$20 : and.w #$00ff : pha : sep #$20 ;2 bytes per direction - lda $8a : and #$40 : !add $700 : rep #$30 : and #$00ff : asl #3 + + lda $8a : tax : lda.l OWTileWorldAssoc,X : eor.l CurrentWorld : beq + + ; fake world, will treat this OW area as opposite world + txa : eor.b #$40 : tax + + txa : and #$40 : !add $700 : rep #$30 : and #$00ff : asl #3 + adc 1,S : tax asl $700 : pla ;x = offset to edgeoffsets table