aboutsummaryrefslogtreecommitdiff
path: root/src/player.s
diff options
context:
space:
mode:
Diffstat (limited to 'src/player.s')
-rw-r--r--src/player.s5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/player.s b/src/player.s
index 48b0bb0..fa649c6 100644
--- a/src/player.s
+++ b/src/player.s
@@ -834,6 +834,9 @@
;; That's just german for "the Bart, the".
.proc die_bart_die
+ ;; If the player was grabbing an item when it happened, let go of it.
+ jsr Items::let_go_on_death
+
;; Decrement the life.
lda Globals::zp_multiplayer
and #$01
@@ -841,8 +844,6 @@
dec Player::zp_lifes, x
bne @nmi_update
- ;; TODO: if it was grabbing an item, turn it into 'falling' state.
-
;; If this poor guy is over, then mark it in the multiplayer bitmap.
cpx #0
bne @player_2_over