From c26843d2212920c084d1aae8306b394402045681 Mon Sep 17 00:00:00 2001 From: Martin Haye Date: Wed, 7 Mar 2018 07:51:37 -0800 Subject: [PATCH] Fixed dark rendering at map edges. --- Platform/Apple/virtual/src/raycast/render.s | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Platform/Apple/virtual/src/raycast/render.s b/Platform/Apple/virtual/src/raycast/render.s index e1fb7452..22e49cef 100644 --- a/Platform/Apple/virtual/src/raycast/render.s +++ b/Platform/Apple/virtual/src/raycast/render.s @@ -483,9 +483,10 @@ castRay: !zone ; special case: hit edge of map .hitEdge: - ldy #0 ; height + ldy darkHeight ; height lda #1 ; depth - sty txNum ; texture number + ldx #0 ; dark texture + stx txNum ; texture number jsr saveLink ; allocate a link and save those lda #0 ; column number sta txColBuf,x ; save that too