mirror of
https://github.com/Pecusx/scorch_src.git
synced 2026-05-21 06:39:40 +02:00
Small optimization (better AI numbers)
This commit is contained in:
BIN
Binary file not shown.
BIN
Binary file not shown.
+8
-10
@@ -2047,14 +2047,21 @@ NextChar02
|
|||||||
iny
|
iny
|
||||||
cpy #$08
|
cpy #$08
|
||||||
bne NextChar02
|
bne NextChar02
|
||||||
; memory !!!!
|
;=========================
|
||||||
|
; displaying number of active controller port or AI level
|
||||||
|
;=========================
|
||||||
ldx TankNr
|
ldx TankNr
|
||||||
ldy #$5e ; Computer symbol
|
ldy #$5e ; Computer symbol
|
||||||
lda SkillTable,x
|
lda SkillTable,x
|
||||||
|
tax
|
||||||
bne ThisIsAI
|
bne ThisIsAI
|
||||||
ldy #$0a ; Joystick symbol
|
ldy #$0a ; Joystick symbol
|
||||||
|
ldx JoystickNumber
|
||||||
|
inx ; tricky
|
||||||
ThisIsAI
|
ThisIsAI
|
||||||
sty statusBuffer+16
|
sty statusBuffer+16
|
||||||
|
lda digits,x
|
||||||
|
sta statusBuffer+17
|
||||||
; rts
|
; rts
|
||||||
.endp
|
.endp
|
||||||
;-------------------------------------------------
|
;-------------------------------------------------
|
||||||
@@ -2062,15 +2069,6 @@ ThisIsAI
|
|||||||
;-------------------------------------------------
|
;-------------------------------------------------
|
||||||
|
|
||||||
ldx TankNr
|
ldx TankNr
|
||||||
;=========================
|
|
||||||
; displaying number of active controller port
|
|
||||||
;=========================
|
|
||||||
ldy SkillTable,x
|
|
||||||
bne LevelOfAI
|
|
||||||
ldy JoystickNumber
|
|
||||||
LevelOfAI
|
|
||||||
lda digits+1,y
|
|
||||||
sta statusBuffer+17
|
|
||||||
|
|
||||||
;=========================
|
;=========================
|
||||||
;displaying symbol of the weapon
|
;displaying symbol of the weapon
|
||||||
|
|||||||
Reference in New Issue
Block a user