Obscure code error of the day:
So I've been having a LOT of problems with my kickoffs since I updated the trajectory formulas. The math always worked out, and the target indicators always were at the right spot, but the ball rarely landed where it was supposed to and the KR
never ran to the right spot.
To make things worse, it didn't happen every time.
WTF??
Today, I was messing with pass stats and I accidentally called the kickoff play.
"Well, might as well see what Urquhart has for me." so I ran the play.
Sure enough, the play bombed out again. Ball landed in the wrong spot and Urquhart ran the wrong way.
However, I noticed that the ball landed in the
exact same spot as the last pass incompletion.
....
o..m..g.. When I updated my kick physics, I accidentally recorded the kickoff location with the passing variables. Urquhart didn't know where to go because the ball was being kicked to the last place I
threw a ball. He was looking at the kick variables.
passLocation != kickLocation
ugh. Sometimes programming is maddening.