mirror of
https://github.com/Pecusx/scorch_src.git
synced 2026-05-21 06:39:40 +02:00
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:
+6
-3
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user