0ad/binaries/data/mods/public
wraitii f990cd2381 Ensure units do get in attacking range since that range can change over time because of elevation differences.
This is a partial revert of 4fda917f46, which skipped the
"MoveToTargetAttackingRange" in APPROACHING. I (incorrectly) assumed
that the original order was still perfectly fine, but in fact the
attacker's max range may have changed as that depends on the relative
elevation between attack and target - and so the original order might
never get us in range!
This was introduced originally in 8c74df2acd.

Add a comment to clarify this.

Further, this makes sure UnitMotion still is aware that it has a target
even if it is in range from the beginning, as that could lead
to stuckiness (and did when chasing sometimes). This was done in D1984
anyways.

Fixes #5478.

Differential Revision: https://code.wildfiregames.com/D2035
This was SVN commit r22429.
2019-07-03 18:05:11 +00:00
..
art Remove two duplicate textures and models. They were incorrectly added in 4981cdedad in the flow of new objects. 2019-06-22 20:50:47 +00:00
audio Acoustic notification when people join a hosted game 2019-02-15 18:55:38 +00:00
globalscripts Wrap damage types in a Damage element in XML templates to prepare for genericizing them. 2019-06-16 17:08:27 +00:00
gui Fix ESLint semicolon-related warnings 2019-07-01 11:09:19 +00:00
l10n Do not generate duplicate biome strings for translation 2019-03-17 14:07:56 +00:00
maps Fix ESLint semicolon-related warnings 2019-07-01 11:09:19 +00:00
shaders Skybox calculation - fix regression of 9376609ee8 introduced in 01a8138780 2019-06-25 19:23:57 +00:00
simulation Ensure units do get in attacking range since that range can change over time because of elevation differences. 2019-07-03 18:05:11 +00:00
mod.json Bump version to alpha 24. 2018-12-26 11:28:37 +00:00