mirror of
https://github.com/Pecusx/scorch_src.git
synced 2026-05-21 06:39:40 +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
|
inc ydraw
|
||||||
lda ydraw
|
lda ydraw
|
||||||
cmp #screenheight
|
cmp #screenheight
|
||||||
bne NextPoint1
|
bne NextPoint1
|
||||||
|
; no pixels on whole column !!!
|
||||||
|
ldy #0
|
||||||
|
lda ydraw
|
||||||
|
sta (tempor2),y
|
||||||
|
sta (temp),y
|
||||||
|
jmp FoundPeek1
|
||||||
FoundPeek1
|
FoundPeek1
|
||||||
inw tempor2
|
inw tempor2
|
||||||
inw temp
|
inw temp
|
||||||
@@ -930,6 +936,32 @@ EndDrawing
|
|||||||
|
|
||||||
rts
|
rts
|
||||||
.endp
|
.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
|
unPlot .proc
|
||||||
; plots a point and saves the plotted byte, reverts the previous plot.
|
; plots a point and saves the plotted byte, reverts the previous plot.
|
||||||
|
|||||||
@@ -299,6 +299,7 @@ SettingEnergies
|
|||||||
jsr clearscreen ;let the screen be clean
|
jsr clearscreen ;let the screen be clean
|
||||||
jsr placetanks ;let the tanks be evenly placed
|
jsr placetanks ;let the tanks be evenly placed
|
||||||
jsr calculatemountains ;let mountains be nice for the eye
|
jsr calculatemountains ;let mountains be nice for the eye
|
||||||
|
; jsr calculatemountains0 ;only fort tests - makes mountains flat and one pixel height
|
||||||
jsr drawmountains ;draw them
|
jsr drawmountains ;draw them
|
||||||
jsr drawtanks ;finally draw tanks
|
jsr drawtanks ;finally draw tanks
|
||||||
|
|
||||||
|
|||||||
BIN
Binary file not shown.
Reference in New Issue
Block a user