mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-07-15 17:54:14 +00:00
f737831167
Attack.js can use UnitMotion to calculate the position of the unit in the future, accounting for odd movements such as zigzags, turnarouds and early stops (to the extent of the current order). This improves the resilience of units against the 'dancing' trick. The linear interpolation is kept as a failsafe and to avoid an edge case in the new prediction code. Patch by: bb Refs #5106 Differential Revision: https://code.wildfiregames.com/D3225 This was SVN commit r24701.