mirror of
https://github.com/pkali/scorch_src.git
synced 2026-05-20 22:34:21 +02:00
More optimizarions
This commit is contained in:
@@ -545,10 +545,7 @@ skipThisPlayer
|
|||||||
sta RandBoundaryHigh+1
|
sta RandBoundaryHigh+1
|
||||||
jsr RandomizeForce
|
jsr RandomizeForce
|
||||||
RepeatAim
|
RepeatAim
|
||||||
lda ForceTableL,x
|
jsr Table2Force
|
||||||
sta Force
|
|
||||||
lda ForceTableH,x
|
|
||||||
sta Force+1
|
|
||||||
; wind correction 90+(wind/8)
|
; wind correction 90+(wind/8)
|
||||||
mwa Wind temp2
|
mwa Wind temp2
|
||||||
:7 lsrw temp2
|
:7 lsrw temp2
|
||||||
|
|||||||
@@ -1631,6 +1631,14 @@ LimitForce
|
|||||||
|
|
||||||
.endp
|
.endp
|
||||||
;----------------------------------------------
|
;----------------------------------------------
|
||||||
|
.proc Table2Force
|
||||||
|
lda ForceTableL,x
|
||||||
|
sta Force
|
||||||
|
lda ForceTableH,x
|
||||||
|
sta Force+1
|
||||||
|
rts
|
||||||
|
.endp
|
||||||
|
;----------------------------------------------
|
||||||
.proc MoveBarrelToNewPosition
|
.proc MoveBarrelToNewPosition
|
||||||
mva #1 Erase
|
mva #1 Erase
|
||||||
jsr DrawTankNr.BarrelChange
|
jsr DrawTankNr.BarrelChange
|
||||||
|
|||||||
BIN
Binary file not shown.
BIN
Binary file not shown.
+2
-9
@@ -1473,10 +1473,7 @@ AfterOffensiveText
|
|||||||
mva #$ff LaserFlag ; $ff - Laser
|
mva #$ff LaserFlag ; $ff - Laser
|
||||||
bne AfterStrongShoot
|
bne AfterStrongShoot
|
||||||
NotStrongShoot
|
NotStrongShoot
|
||||||
lda ForceTableL,x
|
jsr Table2Force
|
||||||
sta Force
|
|
||||||
lda ForceTableH,x
|
|
||||||
sta Force+1
|
|
||||||
bit TestFlightFlag
|
bit TestFlightFlag
|
||||||
bmi AfterStrongShoot
|
bmi AfterStrongShoot
|
||||||
mva #sfx_shoot sfx_effect
|
mva #sfx_shoot sfx_effect
|
||||||
@@ -1968,11 +1965,7 @@ BouncyCastle
|
|||||||
; ---------------- get fire parameters again
|
; ---------------- get fire parameters again
|
||||||
|
|
||||||
ldx TankNr
|
ldx TankNr
|
||||||
lda ActiveWeapon,x
|
jsr Table2Force
|
||||||
lda ForceTableL,x
|
|
||||||
sta Force
|
|
||||||
lda ForceTableH,x
|
|
||||||
sta Force+1
|
|
||||||
lda AngleTable,x
|
lda AngleTable,x
|
||||||
sta Angle
|
sta Angle
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user