Small bugfix and optymalisation

Bugfix in drawnountains (now ground 0 is possible: ) )
Otymized flight proc - explosions no wrap around screen - why? :)
This commit is contained in:
Pecusx
2022-05-18 20:00:27 +02:00
parent 68bf4a9541
commit 620bcf5aa8
4 changed files with 14 additions and 9 deletions
+6 -3
View File
@@ -681,8 +681,11 @@ drawmountains .proc
drawmountainsloop
ldy #0
lda (modify),y
cmp #screenheight
beq NoMountain
sta ydraw
jsr DrawLine
NoMountain
inw modify
inw xdraw
cpw xdraw #screenwidth
@@ -941,14 +944,14 @@ EndDrawing
; ****************************************************
;--------------------------------------------------
calculatemountains0 .proc
; Only for testing - makes ground flat (one pixel)
; Only for testing - makes ground flat (0 pixels)
; and places tanks on it
; remember to remove in final compilation :)
;--------------------------------------------------
mwa #0 xdraw
nextPointDrawing
adw xdraw #mountaintable modify
lda #screenheight-1
lda #screenheight
ldy #0
sta (modify),y
inw xdraw
@@ -957,7 +960,7 @@ nextPointDrawing
ldx NumberOfPlayers
dex
SetYofNextTank
lda #screenheight-2
lda #screenheight-1
sta ytankstable,x
dex
bpl SetYofNextTank