diff options
author | Rangi <remy.oukaour+rangi42@gmail.com> | 2020-10-22 10:54:53 -0400 |
---|---|---|
committer | Rangi <remy.oukaour+rangi42@gmail.com> | 2020-10-22 10:54:53 -0400 |
commit | b9a74ff777ea9418a94616c3b5a26b932a66981c (patch) | |
tree | c9b2080d016de5b3407c8269fb2efc5aa9e0ff11 /engine/overworld/cmd_queue.asm | |
parent | ae4fe08084f3c3c5775bc286bcc630f2c20af083 (diff) |
Identify more sprite graphics and map object labels, and have consistent anonymous jumptable labels
Diffstat (limited to 'engine/overworld/cmd_queue.asm')
-rw-r--r-- | engine/overworld/cmd_queue.asm | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/engine/overworld/cmd_queue.asm b/engine/overworld/cmd_queue.asm index 3e1b09db5..aab339e6c 100644 --- a/engine/overworld/cmd_queue.asm +++ b/engine/overworld/cmd_queue.asm @@ -134,7 +134,7 @@ HandleQueuedCommand: dba CmdQueue_Type3 dba CmdQueue_Type4 -CmdQueueAnonymousJumptable: +CmdQueues_AnonJumptable: ld hl, CMDQUEUE_05 add hl, bc ld a, [hl] @@ -142,13 +142,13 @@ CmdQueueAnonymousJumptable: rst JumpTable ret -CmdQueueAnonJT_Increment: +CmdQueues_IncAnonJumptableIndex: ld hl, CMDQUEUE_05 add hl, bc inc [hl] ret -CmdQueueAnonJT_Decrement: +CmdQueues_DecAnonJumptableIndex: ld hl, CMDQUEUE_05 add hl, bc dec [hl] @@ -162,7 +162,7 @@ CmdQueue_Type1: ret CmdQueue_Type4: - call CmdQueueAnonymousJumptable + call CmdQueues_AnonJumptable ; anonymous dw dw .zero dw .one @@ -172,7 +172,7 @@ CmdQueue_Type4: ld hl, CMDQUEUE_04 add hl, bc ld [hl], a - call CmdQueueAnonJT_Increment + call CmdQueues_IncAnonJumptableIndex .one ld hl, CMDQUEUE_ADDR add hl, bc @@ -206,7 +206,7 @@ CmdQueue_Type4: ret CmdQueue_Type3: - call CmdQueueAnonymousJumptable + call CmdQueues_AnonJumptable ; anonymous dw dw .zero dw .one @@ -215,11 +215,11 @@ CmdQueue_Type3: .zero call .IsPlayerFacingDown jr z, .PlayerNotFacingDown - call CmdQueueAnonJT_Increment + call CmdQueues_IncAnonJumptableIndex .one call .IsPlayerFacingDown jr z, .PlayerNotFacingDown - call CmdQueueAnonJT_Increment + call CmdQueues_IncAnonJumptableIndex ld hl, CMDQUEUE_02 add hl, bc @@ -230,7 +230,7 @@ CmdQueue_Type3: .two call .IsPlayerFacingDown jr z, .PlayerNotFacingDown - call CmdQueueAnonJT_Decrement + call CmdQueues_DecAnonJumptableIndex ld hl, CMDQUEUE_03 add hl, bc |