From f2813ba2c58213911d87491807182e4cce4bc2ea Mon Sep 17 00:00:00 2001 From: Brandon Wright Date: Sat, 11 Aug 2018 12:36:46 -0500 Subject: [PATCH] Fix garbage on left column in Kirby 3. --- tile.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tile.cpp b/tile.cpp index e5360085..fad941ed 100644 --- a/tile.cpp +++ b/tile.cpp @@ -1413,7 +1413,7 @@ extern struct SLineMatrixData LineMatrixData[240]; GFX.S[Offset + 2 * N + 1] = MATH(GFX.ScreenColors[Pix], GFX.SubScreen[Offset + 2 * N], GFX.SubZBuffer[Offset + 2 * N]); \ if ((OffsetInLine + 2 * N ) != (SNES_WIDTH - 1) << 1) \ GFX.S[Offset + 2 * N + 2] = MATH((GFX.ClipColors ? 0 : GFX.SubScreen[Offset + 2 * N + 2]), GFX.RealScreenColors[Pix], GFX.SubZBuffer[Offset + 2 * N]); \ - if ((OffsetInLine + 2 * N) == 0) \ + if ((OffsetInLine + 2 * N) == 0 || (OffsetInLine + 2 * N) == GFX.RealPPL) \ GFX.S[Offset + 2 * N] = MATH((GFX.ClipColors ? 0 : GFX.SubScreen[Offset + 2 * N]), GFX.RealScreenColors[Pix], GFX.SubZBuffer[Offset + 2 * N]); \ GFX.DB[Offset + 2 * N] = GFX.DB[Offset + 2 * N + 1] = Z2; \ }