mirror of
https://github.com/Pecusx/scorch_src.git
synced 2026-05-20 22:33:43 +02:00
Prepare to better default tank names
This commit is contained in:
+15
-17
@@ -1252,35 +1252,33 @@ NotRobot
|
|||||||
|
|
||||||
mva #sfx_next_player sfx_effect
|
mva #sfx_next_player sfx_effect
|
||||||
|
|
||||||
|
|
||||||
; check if all chars are empty (" ")
|
|
||||||
ldy #7
|
|
||||||
lda #0
|
|
||||||
@ ora NameAdr,y
|
|
||||||
and #$7F ; remove inverse (Cursor)
|
|
||||||
dey
|
|
||||||
bpl @-
|
|
||||||
tay
|
|
||||||
beq MakeDefaultName
|
|
||||||
|
|
||||||
ldy #0
|
ldy #0
|
||||||
|
stx temp+1 ; remember start position in tanksnames
|
||||||
|
sty temp ; 0 if name is empty
|
||||||
@
|
@
|
||||||
lda NameAdr,y
|
lda NameAdr,y
|
||||||
and #$7f ; remove inverse (Cursor)
|
and #$7f ; remove inverse (Cursor)
|
||||||
sta tanksnames,x
|
sta tanksnames,x
|
||||||
|
ora temp
|
||||||
|
sta temp
|
||||||
inx
|
inx
|
||||||
iny
|
iny
|
||||||
cpy #$08
|
cpy #$08
|
||||||
bne @-
|
bne @-
|
||||||
|
lda temp ; check if all chars are empty (" ")
|
||||||
|
beq MakeDefaultName
|
||||||
rts
|
rts
|
||||||
MakeDefaultName
|
MakeDefaultName
|
||||||
@
|
ldx temp+1
|
||||||
lda tanksnamesDefault,x
|
ldy #7
|
||||||
sta tanksnames,x
|
@ lda tanksnamesDefault,y
|
||||||
inx
|
sta tanksnames,x
|
||||||
iny
|
inx
|
||||||
cpy #$08
|
dey
|
||||||
bne @-
|
bne @-
|
||||||
|
ldy tanknr
|
||||||
|
lda digits+1,y
|
||||||
|
sta tanksnames,x
|
||||||
rts
|
rts
|
||||||
.endp
|
.endp
|
||||||
;--------------------------------------------------
|
;--------------------------------------------------
|
||||||
|
|||||||
+22
-24
@@ -169,35 +169,33 @@ NotRobot
|
|||||||
|
|
||||||
mva #sfx_next_player sfx_effect
|
mva #sfx_next_player sfx_effect
|
||||||
|
|
||||||
|
|
||||||
; check if all chars are empty (" ")
|
|
||||||
ldy #7
|
|
||||||
lda #0
|
|
||||||
@ ora #0 ; NameAdr,y
|
|
||||||
and #$7F ; remove inverse (Cursor)
|
|
||||||
dey
|
|
||||||
bpl @-
|
|
||||||
tay
|
|
||||||
beq MakeDefaultName
|
|
||||||
|
|
||||||
ldy #0
|
ldy #0
|
||||||
nextchar04
|
stx temp+1 ; remember start position in tanksnames
|
||||||
lda #0 ; NameAdr,y
|
sty temp ; 0 if name is empty
|
||||||
and #$7f ; remove inverse (Cursor)
|
@
|
||||||
sta tanksnames,x
|
lda #0 ; NameAdr,y
|
||||||
inx
|
and #$7f ; remove inverse (Cursor)
|
||||||
iny
|
sta tanksnames,x
|
||||||
cpy #$08
|
ora temp
|
||||||
bne nextchar04
|
sta temp
|
||||||
|
inx
|
||||||
|
iny
|
||||||
|
cpy #$08
|
||||||
|
bne @-
|
||||||
|
lda temp ; check if all chars are empty (" ")
|
||||||
|
beq MakeDefaultName
|
||||||
rts
|
rts
|
||||||
MakeDefaultName
|
MakeDefaultName
|
||||||
nextchar05
|
ldx temp+1
|
||||||
lda tanksnamesDefault,x
|
ldy #7
|
||||||
|
@ lda tanksnamesDefault,y
|
||||||
sta tanksnames,x
|
sta tanksnames,x
|
||||||
inx
|
inx
|
||||||
iny
|
dey
|
||||||
cpy #$08
|
bne @-
|
||||||
bne nextchar05
|
ldy tanknr
|
||||||
|
lda digits+1,y
|
||||||
|
sta tanksnames,x
|
||||||
rts
|
rts
|
||||||
.endp
|
.endp
|
||||||
;--------------------------------------------------
|
;--------------------------------------------------
|
||||||
|
|||||||
+1
-6
@@ -225,12 +225,7 @@ SlideLeftTable
|
|||||||
SlideLeftTableLen = *-SlideLeftTable
|
SlideLeftTableLen = *-SlideLeftTable
|
||||||
;-------------------------------------------------
|
;-------------------------------------------------
|
||||||
TanksNamesDefault
|
TanksNamesDefault
|
||||||
dta d"1st.Tank"
|
dta d"x.n knaT"
|
||||||
dta d"2nd.Tank"
|
|
||||||
dta d"3rd.Tank"
|
|
||||||
.REPT MaxPlayers-3, #+4
|
|
||||||
dta d":1th.Tank"
|
|
||||||
.ENDR
|
|
||||||
;-------------------------------------------------
|
;-------------------------------------------------
|
||||||
TankShapesTable .BYTE char_tank1
|
TankShapesTable .BYTE char_tank1
|
||||||
.BYTE char_tank2
|
.BYTE char_tank2
|
||||||
|
|||||||
BIN
Binary file not shown.
BIN
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user