diff options
| author | Miquel Sabaté Solà <mssola@mssola.com> | 2026-03-11 23:41:08 +0100 |
|---|---|---|
| committer | Miquel Sabaté Solà <mssola@mssola.com> | 2026-03-11 23:41:08 +0100 |
| commit | 58b0af791a8f6a704e4f066dfa187180ae1c8514 (patch) | |
| tree | 4ed863265efb9621c8dd153185c0647bb117eed4 | |
| parent | 8b0531660a8ac0320b8ed7f4bd724ba6dfc333a6 (diff) | |
| download | jetpac.nes-58b0af791a8f6a704e4f066dfa187180ae1c8514.tar.gz jetpac.nes-58b0af791a8f6a704e4f066dfa187180ae1c8514.zip | |
Rename init_x() to init_enemy_x()
This is just a minor fix for an overstep from commit
270d60d58d3e ("Rename scoped variables without being redundant").
Signed-off-by: Miquel Sabaté Solà <mssola@mssola.com>
| -rw-r--r-- | src/enemies.s | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/enemies.s b/src/enemies.s index 0ea0e50..6201416 100644 --- a/src/enemies.s +++ b/src/enemies.s @@ -214,7 +214,7 @@ ldx #0 ldy #ENEMIES_POOL_CAPACITY @enemies_init_loop: - jsr init_x + jsr init_enemy_x dey bne @enemies_init_loop @@ -226,7 +226,7 @@ ;; NOTE: the 'x' register will be advanced by the amount of bytes it takes ;; to store an enemy on the poll (i.e. #SIZEOF_POOL_ITEM bytes). ;; NOTE: the 'y' register is not touched. - .proc init_x + .proc init_enemy_x ;; Pick the palette to be used for the enemy. lda Enemies::zp_palette clc @@ -364,9 +364,9 @@ bne @increase_index_next ;; Initialize the slot as a new 'valid' enemy. - jsr init_x + jsr init_enemy_x - ;; The above 'init_x' call already updates the 'x' register to the + ;; The above 'init_enemy_x' call already updates the 'x' register to the ;; next enemy. Jump to '@next', not '@increase_index_next'. jmp @next |
