Hunter: Use GetPointsInRadius() instead of square - #1948
morganchristiansson wants to merge 6 commits into
Conversation
5cf72c5 to
e641dee
Compare
|
Need some help here. AI started bumping replay versions to keep legacy square for backwards compatibility. Is that a solution? But then we leave the old ugly square code in place. |
I'd prefer that, it is valuable to keep replay working to recreate failures |
|
Ran the auto replay test locally and it passes now. |
|
Also, my memory may be wrong, but I recall original S2 the hunter would approach prey to within ~2 tiles and shoot at close range. Not really in scope, except changing this might also affect replay compatibility. |
beb5f8d to
ab22463
Compare
ab22463 to
2105b03
Compare
2105b03 to
d8277bc
Compare
Hunter currently uses square, comments says it should be circle.
Update it to use new GetPointsInRadius() pattern from nofSkinner.cpp to find animals.
Also extract ANIMAL_RADIUS to shared constant used by Hunter, AI Hunter builder and Skinner.
This supports #1946 which displays building radius as outline.