mirror of
https://github.com/Pecusx/scorch_src.git
synced 2026-05-21 21:34:20 +02:00
Very old bug fixed in soil down!
An old and rare bug that crashes the program if there is nothing to fall. Also I leave the procedure helpful in testing new weapons.
This commit is contained in:
+33
-1
@@ -759,7 +759,13 @@ StillNothing
|
||||
inc ydraw
|
||||
lda ydraw
|
||||
cmp #screenheight
|
||||
bne NextPoint1
|
||||
bne NextPoint1
|
||||
; no pixels on whole column !!!
|
||||
ldy #0
|
||||
lda ydraw
|
||||
sta (tempor2),y
|
||||
sta (temp),y
|
||||
jmp FoundPeek1
|
||||
FoundPeek1
|
||||
inw tempor2
|
||||
inw temp
|
||||
@@ -930,6 +936,32 @@ EndDrawing
|
||||
|
||||
rts
|
||||
.endp
|
||||
; ****************************************************
|
||||
;--------------------------------------------------
|
||||
calculatemountains0 .proc
|
||||
; Only for testing - makes ground flat (one pixel)
|
||||
; and places tanks on it
|
||||
; remember to remove in final compilation :)
|
||||
;--------------------------------------------------
|
||||
mwa #0 xdraw
|
||||
nextPointDrawing
|
||||
adw xdraw #mountaintable modify
|
||||
lda #screenheight-1
|
||||
ldy #0
|
||||
sta (modify),y
|
||||
inw xdraw
|
||||
cpw xdraw #screenwidth
|
||||
bne nextPointDrawing
|
||||
ldx NumberOfPlayers
|
||||
dex
|
||||
SetYofNextTank
|
||||
lda #screenheight-2
|
||||
sta ytankstable,x
|
||||
dex
|
||||
bpl SetYofNextTank
|
||||
rts
|
||||
.endp
|
||||
; ****************************************************
|
||||
; -----------------------------------------
|
||||
unPlot .proc
|
||||
; plots a point and saves the plotted byte, reverts the previous plot.
|
||||
|
||||
Reference in New Issue
Block a user