Fixed dark rendering at map edges.

This commit is contained in:
Martin Haye 2018-03-07 07:51:37 -08:00
parent 1bca56a497
commit c26843d221

View File

@ -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