mirror of
https://github.com/Pecusx/scorch_src.git
synced 2026-05-20 22:33:43 +02:00
Code cleanup
This commit is contained in:
+3
-3
@@ -530,10 +530,10 @@ NamesOfWeapons ;the comment is an index in the tables
|
|||||||
dta d"Auto Defense " ; 46
|
dta d"Auto Defense " ; 46
|
||||||
dta d"Spy Hard " ; 47
|
dta d"Spy Hard " ; 47
|
||||||
|
|
||||||
DefensiveEnergy = *-(last_offensive - first_offensive +1) ; to fake the table for ALL weapons
|
DefensiveEnergy = *-number_of_offensives ; to fake the table for ALL weapons
|
||||||
.by 00 ; White Flag
|
.by 00 ; White Flag
|
||||||
.by 00 ; Heat Guidance
|
.by 00 ; Battery
|
||||||
.by 98 ; Let's go!
|
.by 98 ; Hovercraft
|
||||||
.by 00 ; Parachute
|
.by 00 ; Parachute
|
||||||
.by 99 ; Strong Parachute
|
.by 99 ; Strong Parachute
|
||||||
.by 99 ; Mag Deflector
|
.by 99 ; Mag Deflector
|
||||||
|
|||||||
+5
-11
@@ -102,8 +102,6 @@ ResultsTable ;the results in the gameeeeee
|
|||||||
.DS MaxPlayers
|
.DS MaxPlayers
|
||||||
TempResults
|
TempResults
|
||||||
.DS MaxPlayers
|
.DS MaxPlayers
|
||||||
;DirectHitsH ; one byte enough
|
|
||||||
; .DS MaxPlayers
|
|
||||||
DirectHits
|
DirectHits
|
||||||
.DS MaxPlayers
|
.DS MaxPlayers
|
||||||
EarnedMoneyH
|
EarnedMoneyH
|
||||||
@@ -287,9 +285,9 @@ AfterBFGflag .DS 1
|
|||||||
; tables with indexes of weapons on the right lists
|
; tables with indexes of weapons on the right lists
|
||||||
; OK (2022) so, L1 is list of offensive weapons, L2 - defensive
|
; OK (2022) so, L1 is list of offensive weapons, L2 - defensive
|
||||||
IndexesOfWeaponsL1
|
IndexesOfWeaponsL1
|
||||||
.ds (last_offensive - first_offensive +1)
|
.ds (number_of_offensives)
|
||||||
IndexesOfWeaponsL2
|
IndexesOfWeaponsL2
|
||||||
.ds (last_defensive - first_defensive +1)
|
.ds (number_of_defensives)
|
||||||
;----------------------------------------------------
|
;----------------------------------------------------
|
||||||
|
|
||||||
; variables storing amount of weapons on the first and second
|
; variables storing amount of weapons on the first and second
|
||||||
@@ -409,15 +407,11 @@ CharCode4x4 .DS 1
|
|||||||
;plot4x4color .DS 1 ;1-white, 0-background
|
;plot4x4color .DS 1 ;1-white, 0-background
|
||||||
; This is moved from display.asm to be easier to relocate
|
; This is moved from display.asm to be easier to relocate
|
||||||
ListOfWeapons
|
ListOfWeapons
|
||||||
; 0123456789012345678901234567890123456789
|
; 01234567890123456789012345678901
|
||||||
; :number_of_offensives dta d" "
|
.ds number_of_offensives*32
|
||||||
;:32 dta d" "
|
|
||||||
.ds 32*32
|
|
||||||
ListOfWeapons1End
|
ListOfWeapons1End
|
||||||
ListOfDefensiveWeapons
|
ListOfDefensiveWeapons
|
||||||
; :number_of_defensives dta d" "
|
.ds number_of_defensives*32
|
||||||
;:16 dta d" "
|
|
||||||
.ds 16*32
|
|
||||||
ListOfDefensiveWeaponsEnd ;constant useful when clearing
|
ListOfDefensiveWeaponsEnd ;constant useful when clearing
|
||||||
track_variables
|
track_variables
|
||||||
trackn_db .ds TRACKS
|
trackn_db .ds TRACKS
|
||||||
|
|||||||
Reference in New Issue
Block a user