mirror of
https://github.com/Pecusx/scorch_src.git
synced 2026-05-20 22:33:43 +02:00
Fix for silly "big mountains" bug.
It's not a real fix, but rather a workaround. The putchar4x4 routine now checks for writing off-screen.
This commit is contained in:
+7
-4
@@ -1903,10 +1903,13 @@ EndPutChar
|
||||
; all pixels are being drawn
|
||||
; (empty and not empty)
|
||||
;--------------------------------------------------
|
||||
; cpw ydraw #(screenheight-4)
|
||||
; jcs TypeChar.EndPutChar ;nearest RTS
|
||||
; cpw xdraw #(screenwidth-4)
|
||||
; jcs TypeChar.EndPutChar ;nearest RTS
|
||||
; rts
|
||||
cpw dy #(screenheight-1)
|
||||
jcs TypeChar.EndPutChar ;nearest RTS
|
||||
cpw dy #(4)
|
||||
jcc TypeChar.EndPutChar ;nearest RTS
|
||||
cpw dx #(screenwidth-4)
|
||||
jcs TypeChar.EndPutChar ;nearest RTS
|
||||
; checks ommited.
|
||||
lda plot4x4color
|
||||
beq FontColor0
|
||||
|
||||
Reference in New Issue
Block a user