0ad/source/simulation2
Angen 3ffc23008d [Petra] do not pass min == max range in moveToRange
Original diff D2512

Reported on forum by gameboy:
https://wildfiregames.com/forum/index.php?/topic/27384-strange-landing-on-the-island-and-unable-to-attack/

Units with goal where minrange = maxrange rarely arrive to destination,
because they miss it.
See Todo in unitmotion
Relative part:

In the meantime, one should avoid that 'Speed over a turn' > MaxRange -
MinRange, in case where min-range is not 0 and max-range is not
infinity.

For that reason avoid passing minrange = maxrange from ai.
Also warn in cpp unitmoition when getting this kind of command.

Differential revision: D3149
Reviewed by: @wraitii
This was SVN commit r24315.
2020-12-02 18:11:02 +00:00
..
components [Petra] do not pass min == max range in moveToRange 2020-12-02 18:11:02 +00:00
docs Replace deprecated jsval with JS::Value. 2017-08-28 10:27:36 +00:00
helpers Fix most of the new vs2017 induced warnings. 2020-11-26 22:28:50 +00:00
scripting Clean up header includes, add new forward declarations. 2020-11-21 11:20:29 +00:00
serialization [SM68 2/2] Update to Spidermonkey 68 APIs 2020-11-30 09:03:20 +00:00
system [SM68 2/2] Update to Spidermonkey 68 APIs 2020-11-30 09:03:20 +00:00
tests Update random_shuffle usage for C++17 2020-11-30 15:52:16 +00:00
MessageTypes.h UnitMotion - Send messages to UnitAI when obstructed, to allow stopping early when walking and avoiding pathfinding lag. 2019-07-22 18:07:24 +00:00
Simulation2.cpp Fix most of the new vs2017 induced warnings. 2020-11-26 22:28:50 +00:00
Simulation2.h [SM52 2/2] Update to Spidermonkey 52 APIs. 2020-11-18 14:39:04 +00:00
TypeList.h Store turret positions in map files. 2020-11-11 19:40:44 +00:00