Disallow zero-speed bats #2
|
@ -727,7 +727,7 @@ function updateBatting(batDeg, batSpeed)
|
||||||
batTip.y = batBase.y + (BatLength * math.cos(batAngle))
|
batTip.y = batBase.y + (BatLength * math.cos(batAngle))
|
||||||
|
|
||||||
if
|
if
|
||||||
batSpeed >= 0 -- > 0
|
batSpeed > 0
|
||||||
and utils.pointDirectlyUnderLine(ball.x, ball.y, batBase.x, batBase.y, batTip.x, batTip.y, Screen.H)
|
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)
|
and ball.y < 232 --not isTouchingBall(fielders.catcher.x, fielders.catcher.y)
|
||||||
then
|
then
|
||||||
|
|
Loading…
Reference in New Issue