mirror of
https://github.com/Pecusx/scorch_src.git
synced 2026-05-20 22:33:43 +02:00
Fix for minimal mountain height drawing.
This commit is contained in:
+4
-1
@@ -239,7 +239,10 @@ MinCalculated
|
|||||||
lda xdraw
|
lda xdraw
|
||||||
and #%00000111 ; only every 8th pixel
|
and #%00000111 ; only every 8th pixel
|
||||||
bne NotFillBytes
|
bne NotFillBytes
|
||||||
; A=0 is here
|
lda temp2
|
||||||
|
cmp #screenheight+1 ; only if minimum is not miniminimum :)
|
||||||
|
beq NotFillBytes
|
||||||
|
|
||||||
dec ydraw ; protection if temp2=screenheight
|
dec ydraw ; protection if temp2=screenheight
|
||||||
@ lda #0
|
@ lda #0
|
||||||
sta (xbyte),y
|
sta (xbyte),y
|
||||||
|
|||||||
+4
-1
@@ -247,7 +247,10 @@ MinCalculated
|
|||||||
lda xdraw
|
lda xdraw
|
||||||
and #%00000111 ; only every 8th pixel
|
and #%00000111 ; only every 8th pixel
|
||||||
bne NotFillBytes
|
bne NotFillBytes
|
||||||
; A=0 is here
|
lda temp2
|
||||||
|
cmp #screenheight+1 ; only if minimum is not miniminimum :)
|
||||||
|
beq NotFillBytes
|
||||||
|
|
||||||
dec ydraw ; protection if temp2=screenheight
|
dec ydraw ; protection if temp2=screenheight
|
||||||
@ lda #0
|
@ lda #0
|
||||||
tay
|
tay
|
||||||
|
|||||||
+9
-1
@@ -1539,9 +1539,10 @@ EndDrawing
|
|||||||
rts
|
rts
|
||||||
.endp
|
.endp
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
;--------------------------------------------------
|
;--------------------------------------------------
|
||||||
.proc calculatemountains0
|
.proc calculatemountains
|
||||||
; Only for testing - makes ground flat (0 pixels)
|
; Only for testing - makes ground flat (0 pixels)
|
||||||
; and places tanks on it
|
; and places tanks on it
|
||||||
; remember to remove in final compilation :)
|
; remember to remove in final compilation :)
|
||||||
@@ -1555,6 +1556,13 @@ nextPointDrawing
|
|||||||
inw xdraw
|
inw xdraw
|
||||||
cpw xdraw #screenwidth
|
cpw xdraw #screenwidth
|
||||||
bne nextPointDrawing
|
bne nextPointDrawing
|
||||||
|
; 20 first points - max height!
|
||||||
|
mwa #mountaintable modify
|
||||||
|
ldy #20
|
||||||
|
lda #0
|
||||||
|
@ sta (modify),y
|
||||||
|
dey
|
||||||
|
bpl @-
|
||||||
ldx NumberOfPlayers
|
ldx NumberOfPlayers
|
||||||
dex
|
dex
|
||||||
SetYofNextTank
|
SetYofNextTank
|
||||||
|
|||||||
BIN
Binary file not shown.
BIN
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user