mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-07-06 10:27:39 +00:00
b1a78ce285
Problem description: When unit gets command to move to the range exactly X units from some point/entity, what means minRange == maxRange, that triggers computing goal when distance < minRange with result distance(goal, target) > maxRange, because minRange computation uses clearance even when is treating target as circle. Solution: Do not use clearance when treating target as circle, so computation when distance < minimum range is done in same way as computation when distance > maximum range and so computed goal has correct position. Reported on forum: https://wildfiregames.com/forum/index.php?/topic/27384-strange-landing-on-the-island-and-unable-to-attack/ Differential Revision: https://code.wildfiregames.com/D2512 Tested by: gameboy This was SVN commit r23283.