mirror of
https://gitea.wildfiregames.com/0ad/0ad
synced 2026-06-17 05:44:08 -07:00
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. |
||
|---|---|---|
| .. | ||
| components | ||
| docs | ||
| helpers | ||
| scripting | ||
| serialization | ||
| system | ||
| tests | ||
| MessageTypes.h | ||
| Simulation2.cpp | ||
| Simulation2.h | ||
| TypeList.h | ||