Minor optimization

This commit is contained in:
Pecusx
2023-01-06 20:54:09 +01:00
parent fb0de84c01
commit 872d564846
3 changed files with 4 additions and 8 deletions
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
+4 -8
View File
@@ -1168,8 +1168,7 @@ afterInventory
NoSpyHard NoSpyHard
RmtSong song_ingame RmtSong song_ingame
mva #0 escFlag mva #0 escFlag
jsr WaitForKeyRelease jmp ReleaseAndLoop
jmp BeforeFire
@ @
cmp #$80|@kbcode._up cmp #$80|@kbcode._up
jeq CTRLPressedUp jeq CTRLPressedUp
@@ -1383,8 +1382,7 @@ pressedTAB
lda ActiveWeapon,x lda ActiveWeapon,x
jsr HowManyBullets ; and we have qty of owned shells. Ufff.... jsr HowManyBullets ; and we have qty of owned shells. Ufff....
beq pressedTAB beq pressedTAB
jsr WaitForKeyRelease bne ReleaseAndLoop
jmp BeforeFire
CTRLpressedTAB CTRLpressedTAB
mva #sfx_purchase sfx_effect mva #sfx_purchase sfx_effect
@@ -1401,16 +1399,14 @@ CTRLpressedTAB
lda ActiveWeapon,x lda ActiveWeapon,x
jsr HowManyBullets ; and we have qty of owned shells. Ufff.... jsr HowManyBullets ; and we have qty of owned shells. Ufff....
beq CTRLpressedTAB beq CTRLpressedTAB
jsr WaitForKeyRelease bne ReleaseAndLoop
jmp BeforeFire
pressedM pressedM
; have you tried turning the music off and on again? ; have you tried turning the music off and on again?
lda #$ff lda #$ff
eor:sta noMusic eor:sta noMusic
RmtSong song_ingame RmtSong song_ingame
jsr WaitForKeyRelease jmp ReleaseAndLoop
jmp BeforeFire
pressedS pressedS
; have you tried turning sfx off and on again? ; have you tried turning sfx off and on again?