jonesguy14 / footballcoach

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

TOD fix & adding time decrease to qbInterception #34

Closed destilla closed 8 years ago

destilla commented 8 years ago

Made the turnover on downs section of runPlay an if/else so that runPlay doesn't keep going after changing possession for a turnover on downs. Otherwise the play keeps going but adds stats and logs any score/turnover as if the original offense is still on the field, but getEventPrefix logs as if the ball changed hands.

Added time decrease to qbInterception so that time actually runs off the clock when a pick happens. Put the time decrease after the log otherwise it looks like any logged play happening immediately following the interception took 0 seconds to occur.