diff --git a/!TheEscape/!RunImage,ffb b/!TheEscape/!RunImage,ffb index 81aee65..962c50d 100644 Binary files a/!TheEscape/!RunImage,ffb and b/!TheEscape/!RunImage,ffb differ diff --git a/!TheEscape/!RunImage,ffb.bas b/!TheEscape/!RunImage,ffb.bas index 22d92ec..5457eff 100644 --- a/!TheEscape/!RunImage,ffb.bas +++ b/!TheEscape/!RunImage,ffb.bas @@ -273,10 +273,11 @@ ENDPROC REM Calculate player ship's phaser arc DEF PROCplayer_arc_calculatetarget - NoseX% = PlayerLocation%(X) + PlayerHitbox%(0) + (PlayerHitbox%(2)/2) + NoseX% = PlayerLocation%(x) + PlayerHitbox%(0) + (PlayerHitbox%(2)/2) + NoseXLeft% = PlayerLocation%(X) + PlayerHitbox%(0) + NoseXRight% = PlayerLocation%(X) + PlayerHitbox%(0) + PlayerHitbox%(2) NoseY% = (PlayerLocation%(Y) + PlayerHitbox%(1) + PlayerHitbox%(3)) - LeftDistance% = 1000 LeftID% = -1 RightDistance% = 1000 @@ -291,13 +292,13 @@ DEF PROCplayer_arc_calculatetarget DistanceX% = ABS(NoseX% - ((LeftCornerX% + RightCornerX%) / 2)) IF (DistanceY%/5) > DistanceX% THEN - IF (NoseX% - ((LeftCornerX% + RightCornerX%) / 2)) > 0 THEN + IF (NoseXRight% - ((LeftCornerX% + RightCornerX%) / 2)) > 0 THEN IF DistanceY% < LeftDistance% THEN LeftDistance% = DistanceY% LeftID% = Enemy% ENDIF ENDIF - IF (NoseX% - ((LeftCornerX% + RightCornerX%) / 2)) < 0 THEN + IF (NoseXLeft% - ((LeftCornerX% + RightCornerX%) / 2)) < 0 THEN IF DistanceY% < RightDistance% THEN RightDistance% = DistanceY% RightID% = Enemy%