weapons optimization

This commit is contained in:
2022-08-28 01:01:36 -04:00
parent 851e8dd5af
commit 068e5af36b
6 changed files with 339 additions and 335 deletions
+4 -4
View File
@@ -152,7 +152,7 @@ LowResDistances ; coarse tank positions divided by 4 (to be in just one byte)
;----------------------------------------------------
TargetTankNr ; Target tank index (for AI routines)
.DS 1
SecondTryFlag ; For precize aiming AI
SecondTryFlag ; For precise AI aiming
.DS 1
;----------------------------------------------------
;Erase .DS 1 ; if 1 only mask of the character is printed
@@ -273,9 +273,9 @@ temptankNr .DS 1
; tables with indexes of weapons on the right lists
; OK (2022) so, L1 is list of offensive weapons, L2 - defensive
IndexesOfWeaponsL1
.ds 8*5 ; max 40 offensive weapons. this is wrong, should be 48, still only 32 defined.
.ds (last_offensive_____ - first_offensive____)
IndexesOfWeaponsL2
.ds 8*2 ; max 16 defensive weapons.
.ds (last_defensive_____ - first_defensive____)
;----------------------------------------------------
; variables storing amount of weapons on the first and second
@@ -294,7 +294,7 @@ LastWeapon
; and the cursor must be placed elsewhere
.DS 1
WhichList ; list currently on the screen
; (0-offensive, 1-defensive)
; (0-offensive, %10000000 - defensive (check with bit:bmi for defensives)
.DS 1
;OffsetDL1 .DS 1 ; offset of the list screen (how many lines)....