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
|
||||
|
||||
|
||||
; 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
|
||||
stx temp+1 ; remember start position in tanksnames
|
||||
sty temp ; 0 if name is empty
|
||||
@
|
||||
lda NameAdr,y
|
||||
and #$7f ; remove inverse (Cursor)
|
||||
sta tanksnames,x
|
||||
ora temp
|
||||
sta temp
|
||||
inx
|
||||
iny
|
||||
cpy #$08
|
||||
bne @-
|
||||
lda temp ; check if all chars are empty (" ")
|
||||
beq MakeDefaultName
|
||||
rts
|
||||
MakeDefaultName
|
||||
@
|
||||
lda tanksnamesDefault,x
|
||||
sta tanksnames,x
|
||||
inx
|
||||
iny
|
||||
cpy #$08
|
||||
ldx temp+1
|
||||
ldy #7
|
||||
@ lda tanksnamesDefault,y
|
||||
sta tanksnames,x
|
||||
inx
|
||||
dey
|
||||
bne @-
|
||||
ldy tanknr
|
||||
lda digits+1,y
|
||||
sta tanksnames,x
|
||||
rts
|
||||
.endp
|
||||
;--------------------------------------------------
|
||||
|
||||
+22
-24
@@ -169,35 +169,33 @@ NotRobot
|
||||
|
||||
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
|
||||
nextchar04
|
||||
lda #0 ; NameAdr,y
|
||||
and #$7f ; remove inverse (Cursor)
|
||||
sta tanksnames,x
|
||||
inx
|
||||
iny
|
||||
cpy #$08
|
||||
bne nextchar04
|
||||
stx temp+1 ; remember start position in tanksnames
|
||||
sty temp ; 0 if name is empty
|
||||
@
|
||||
lda #0 ; NameAdr,y
|
||||
and #$7f ; remove inverse (Cursor)
|
||||
sta tanksnames,x
|
||||
ora temp
|
||||
sta temp
|
||||
inx
|
||||
iny
|
||||
cpy #$08
|
||||
bne @-
|
||||
lda temp ; check if all chars are empty (" ")
|
||||
beq MakeDefaultName
|
||||
rts
|
||||
MakeDefaultName
|
||||
nextchar05
|
||||
lda tanksnamesDefault,x
|
||||
ldx temp+1
|
||||
ldy #7
|
||||
@ lda tanksnamesDefault,y
|
||||
sta tanksnames,x
|
||||
inx
|
||||
iny
|
||||
cpy #$08
|
||||
bne nextchar05
|
||||
dey
|
||||
bne @-
|
||||
ldy tanknr
|
||||
lda digits+1,y
|
||||
sta tanksnames,x
|
||||
rts
|
||||
.endp
|
||||
;--------------------------------------------------
|
||||
|
||||
+1
-6
@@ -225,12 +225,7 @@ SlideLeftTable
|
||||
SlideLeftTableLen = *-SlideLeftTable
|
||||
;-------------------------------------------------
|
||||
TanksNamesDefault
|
||||
dta d"1st.Tank"
|
||||
dta d"2nd.Tank"
|
||||
dta d"3rd.Tank"
|
||||
.REPT MaxPlayers-3, #+4
|
||||
dta d":1th.Tank"
|
||||
.ENDR
|
||||
dta d"x.n knaT"
|
||||
;-------------------------------------------------
|
||||
TankShapesTable .BYTE char_tank1
|
||||
.BYTE char_tank2
|
||||
|
||||
BIN
Binary file not shown.
BIN
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user