mirror of
https://github.com/deater/dos33fsprogs.git
synced 2024-12-27 02:31:00 +00:00
ootw: collision: properly check to see if alien on same level
This commit is contained in:
parent
4174221b4e
commit
c1af283391
@ -257,8 +257,12 @@ calc_gun_right_alien_loop:
|
||||
cmp WHICH_ROOM
|
||||
bne calc_gun_right_alien_continue
|
||||
|
||||
lda PHYSICIST_X
|
||||
; only if on same level
|
||||
lda alien_y,X
|
||||
cmp PHYSICIST_Y
|
||||
bne calc_gun_right_alien_continue
|
||||
|
||||
lda PHYSICIST_X
|
||||
cmp alien_x,X
|
||||
bcs calc_gun_right_alien_continue ; bge
|
||||
|
||||
@ -466,8 +470,12 @@ calc_gun_left_alien_loop:
|
||||
cmp WHICH_ROOM
|
||||
bne calc_gun_left_alien_continue
|
||||
|
||||
lda PHYSICIST_X
|
||||
; only if on same level
|
||||
lda alien_y,X
|
||||
cmp PHYSICIST_Y
|
||||
bne calc_gun_left_alien_continue
|
||||
|
||||
lda PHYSICIST_X
|
||||
cmp alien_x,X
|
||||
bcc calc_gun_left_alien_continue ; blt
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user