From faa9841835c4dd20e996b952535f8a83386e9a3e Mon Sep 17 00:00:00 2001 From: Smallhacker Date: Sun, 11 Mar 2018 20:38:53 +0100 Subject: [PATCH] Holy crap this is so stupid --- shopkeeper.asm | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/shopkeeper.asm b/shopkeeper.asm index 375e37e..b7009ee 100644 --- a/shopkeeper.asm +++ b/shopkeeper.asm @@ -826,13 +826,22 @@ ParadoxCaveGfxFix: ;Ignore uploading four specific lines of tiles to VRAM LDX $0118 - CPX #$1800 : BEQ .skipLine - CPX #$1A00 : BEQ .skipLine + ; Line 1 + CPX #$1800 : BEQ .skipMostOfLine + ; Line 2 + CPX #$1A00 : BEQ .skipMostOfLine + ; Line 3 CPX #$1C00 : BEQ .skipLine + ; Line 4 CPX #$1E00 : BEQ .skipLine .uploadLine LDA.b #$01 : STA $420B .skipLine - RTL \ No newline at end of file + RTL + +.skipMostOfLine + ; Set line length to 192 bytes (the first 6 8x8 tiles in the line) + LDX.w #$00C0 : STX $4305 + BRA .uploadLine \ No newline at end of file