0ad/source/simulation2/components/tests
wraitii d92feab275 Fix target height computation when launching projectiles.
The Y coordinate at which to fire a projectile is currently assumed to
be the target's current Y, which is incorrect if the target is moving on
a slope.
This fixes that.

Note that this was purely visual, since projectiles still hit the target
regardless, as the height component is totally ignored, even if the
projectile is underground (in fact, the projectile's position is not
known in DelayedDamage::MissileHit, which just assumes it lands where it
said it would when fired).

As noted by bb in f737831167

Fixes #5939

Differential Revision: https://code.wildfiregames.com/D3425
This was SVN commit r24766.
2021-01-22 18:16:13 +00:00
..
test_CinemaManager.h Rename ScriptRuntime to ScriptContext 2020-11-14 10:57:50 +00:00
test_CommandQueue.h Improve JS Exception handling. 2020-11-15 18:29:17 +00:00
test_HierPathfinder.h Fix most of the new vs2017 induced warnings. 2020-11-26 22:28:50 +00:00
test_ObstructionManager.h Fix most of the new vs2017 induced warnings. 2020-11-26 22:28:50 +00:00
test_Pathfinder.h [SM52 2/2] Update to Spidermonkey 52 APIs. 2020-11-18 14:39:04 +00:00
test_Position.h Clean up header includes, add new forward declarations. 2020-11-21 11:20:29 +00:00
test_RangeManager.h Fix target height computation when launching projectiles. 2021-01-22 18:16:13 +00:00
test_scripts.h Correctly serialize/deserialize user-defined JS objects. 2020-12-27 17:18:13 +00:00
test_TerritoryManager.h Pass some strings and a vector as const refs. 2017-02-24 17:02:10 +00:00