mirror of
https://github.com/Pecusx/scorch_src.git
synced 2026-05-21 06:39:40 +02:00
Smoke Tracer fixed!
This commit is contained in:
BIN
Binary file not shown.
+18
-27
@@ -1792,10 +1792,10 @@ NoWind
|
|||||||
|
|
||||||
bit TestFlightFlag
|
bit TestFlightFlag
|
||||||
bmi nowait
|
bmi nowait
|
||||||
lda tracerflag
|
; lda tracerflag
|
||||||
bne nowait
|
; bne nowait
|
||||||
lda color
|
; lda color
|
||||||
beq nowait
|
; beq nowait
|
||||||
|
|
||||||
jsr shellDelay
|
jsr shellDelay
|
||||||
|
|
||||||
@@ -1966,40 +1966,31 @@ BouncyCastle
|
|||||||
.proc SecondFlight
|
.proc SecondFlight
|
||||||
; ---------------- copied code fragment from before firing. not too elegant.
|
; ---------------- copied code fragment from before firing. not too elegant.
|
||||||
; ---------------- get fire parameters again
|
; ---------------- get fire parameters again
|
||||||
ldx TankNr
|
|
||||||
|
ldx TankNr
|
||||||
|
lda ActiveWeapon,x
|
||||||
lda ForceTableL,x
|
lda ForceTableL,x
|
||||||
sta Force
|
sta Force
|
||||||
lda ForceTableH,x
|
lda ForceTableH,x
|
||||||
sta Force+1
|
sta Force+1
|
||||||
lda #$0
|
|
||||||
sta Force+2
|
|
||||||
lda AngleTable,x
|
lda AngleTable,x
|
||||||
sta Angle
|
sta Angle
|
||||||
|
|
||||||
|
; Shoots tank nr X !!! :)
|
||||||
|
; set the starting coordinates of bullet with correction
|
||||||
|
; to start where the tank's barrel ends
|
||||||
|
; (without it bullet would go from the left lower corner of the tank)
|
||||||
|
;ldx TankNr
|
||||||
|
|
||||||
|
mwa EndOfTheBarrelX xtraj+1
|
||||||
|
mva EndOfTheBarrely ytraj+1
|
||||||
lda #0
|
lda #0
|
||||||
sta color
|
sta Force+2
|
||||||
|
sta ytraj+2
|
||||||
sta xtraj
|
sta xtraj
|
||||||
sta ytraj
|
sta ytraj
|
||||||
|
sta color
|
||||||
|
|
||||||
mwa EndOfTheBarrelX xbyte
|
|
||||||
mva EndOfTheBarrelY ybyte
|
|
||||||
mva #0 ybyte+1
|
|
||||||
|
|
||||||
; ldy Angle
|
|
||||||
; clc
|
|
||||||
; lda xtraj+1
|
|
||||||
; adc EndOfTheBarrelX,y ; correction of X
|
|
||||||
; sta xtraj+1
|
|
||||||
; lda xtraj+2
|
|
||||||
; adc #0
|
|
||||||
; sta xtraj+2
|
|
||||||
; sec
|
|
||||||
; lda ytraj+1
|
|
||||||
; sbc EndOfTheBarrelY,y ; correction of Y
|
|
||||||
; sta ytraj+1
|
|
||||||
; lda ytraj+2
|
|
||||||
; sbc #0
|
|
||||||
; sta ytraj+2
|
|
||||||
|
|
||||||
ldy #100 ; ???
|
ldy #100 ; ???
|
||||||
mva #1 tracerflag ; I do not know (I mean I think I know ;) )
|
mva #1 tracerflag ; I do not know (I mean I think I know ;) )
|
||||||
|
|||||||
Reference in New Issue
Block a user