aboutsummaryrefslogtreecommitdiff
path: root/src/items.s
diff options
context:
space:
mode:
Diffstat (limited to 'src/items.s')
-rw-r--r--src/items.s6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/items.s b/src/items.s
index 084bd1b..164d5b7 100644
--- a/src/items.s
+++ b/src/items.s
@@ -527,7 +527,9 @@
;; game where the score was accounted on part/tank pickup, not
;; dropping. I find this more reliable and easier to code, and in the
;; end it's the same.
+ stx Globals::zp_tmp2
ADD_PART_FUEL_SCORE
+ ldx Globals::zp_tmp2
jmp @next
@@ -946,8 +948,6 @@
;; Collect an item as indexed by 'zp_pool_index'. This function assumes that
;; the item is already valid.
- ;;
- ;; NOTE: the 'y' register is preserved.
.proc collect
ldx Items::zp_pool_index
@@ -975,7 +975,9 @@
sta Items::zp_pool_base, x
;; Account for this on the player's score.
+ stx Globals::zp_tmp2
ADD_ITEM_SCORE
+ ldx Globals::zp_tmp2
rts
.endproc