aboutsummaryrefslogtreecommitdiff
path: root/src/enemies.s
diff options
context:
space:
mode:
Diffstat (limited to 'src/enemies.s')
-rw-r--r--src/enemies.s12
1 files changed, 1 insertions, 11 deletions
diff --git a/src/enemies.s b/src/enemies.s
index b4511e6..b6005fc 100644
--- a/src/enemies.s
+++ b/src/enemies.s
@@ -872,7 +872,7 @@
inc Globals::zp_arg1
inc Globals::zp_arg1
jsr Background::collides
- beq @check_front_or_bottom
+ beq @prepare_check_front_collision
;; There was a (hopefully purely) upper collision!
@bounce_down:
@@ -891,16 +891,6 @@
rts
- ;; Now, depending on the level, the enemy might be the regular size or
- ;; shorter. If it's on the shorter end, then move to check the bottom
- ;; corners directly.
- @check_front_or_bottom:
- lda Globals::zp_level_kind
- cmp #2
- beq @prepare_check_front_collision
- cmp #1
- bne @check_bottom
-
@prepare_check_front_collision:
;; We are checking the "front" (center) of the enemy, which corresponds
;; to the regular sized enemy. This means to increase the Y tile