jonesguy14 / footballcoach

Android App for playing/simulating/recruiting as a college football coach
Other
34 stars 8 forks source link

Update/Fix End of Game Play Selection #46

Closed destilla closed 8 years ago

destilla commented 8 years ago

When I implemented the fix to teams always passing it with under 30 to play, I only checked if the team was trailing or ahead, not if they were tied.

As a result, a team within field goal range that has the ball and is tied will pass the ball rather than kick the potential game winning FG.

So I changed > to >= and added some comments to describe the scenario we're checking.