BazkieBumpercar / GameplayFootball

Football game, discontinued
The Unlicense
198 stars 68 forks source link

width depth mistake? #14

Closed ziaoang closed 4 years ago

ziaoang commented 4 years ago

In src/onthepitch/teamAIcontroller.cpp line 356 - 359 ··· float backXBound = centerX - adaptedDepth pitchHalfW -team->GetSide(); float frontXBound = centerX + adaptedDepth pitchHalfW -team->GetSide(); float lowYBound = centerY - adaptedWidth pitchHalfH; float highYBound = centerY + adaptedWidth pitchHalfH; ··· Is "adaptedDepth" should corresponding to "pitchHalfH" and "adaptedWidth" corresponding to "pitchHalfW"?

BazkieBumpercar commented 4 years ago

I don't think it's a bug, but I do think I may have used very confusing definitions. I seem to be using 'width' in one context, where the same thing is called 'height' in another context. Sorry about that :$