Disallow zero-speed bats

This commit is contained in:
Sage Vaillancourt 2025-02-07 00:50:49 -05:00
parent 9678db167f
commit d0f4b9df97
1 changed files with 1 additions and 1 deletions

View File

@ -727,7 +727,7 @@ function updateBatting(batDeg, batSpeed)
batTip.y = batBase.y + (BatLength * math.cos(batAngle))
if
batSpeed >= 0 -- > 0
batSpeed > 0
and utils.pointDirectlyUnderLine(ball.x, ball.y, batBase.x, batBase.y, batTip.x, batTip.y, Screen.H)
and ball.y < 232 --not isTouchingBall(fielders.catcher.x, fielders.catcher.y)
then