0ad/source/simulation2/components/tests
wraitii d3de36527d Hierarchical pathfinder: fix an issue with regions and some touch-ups
FindPassableRegions intends to return all passable regions in a chunk,
but did not as it used the number of regions in that chunk. In fact,
regions can have individual IDs higher than the number of regions (as
shown by the test), therefore FindPassableRegions might miss some.
This only affected the JPS pathfinder, when starting on an impassable
cell, which called FindNearestPassableNavcell with then possibly
returned a sub-optimal navcell. This is a limited impact but upcoming
patches will rely on that function more.

Fixed using a vector to store IDs, which also makes for-range loops
usable.

Differential Revision: https://code.wildfiregames.com/D1832
This was SVN commit r22218.
2019-04-24 19:02:09 +00:00
..
test_CinemaManager.h Adds basic tests for the CinemaManager component 2017-11-24 22:38:03 +00:00
test_CommandQueue.h Fixes tests adding system components without using the SYSTEM_ENTITY id - this caused assertion failures in debug builds 2015-06-21 19:22:12 +00:00
test_HierPathfinder.h Hierarchical pathfinder: fix an issue with regions and some touch-ups 2019-04-24 19:02:09 +00:00
test_ObstructionManager.h Remove trailing whitespace and whitespace in empty lines of source/ except source/third_party/. 2016-11-23 11:18:37 +00:00
test_Pathfinder.h Add a few assertions to pathfinder tests, fix the disabled tests. 2019-04-22 12:13:54 +00:00
test_Position.h Rename cmpPosition's IsFloating to CanFloat. 2017-09-18 09:54:54 +00:00
test_RangeManager.h Fix 4edcf21b98. Refs #5428 2019-04-10 06:05:34 +00:00
test_scripts.h Remove VFS cache, because it is less effective and less efficient than the OS cache (and partially redundant with higher level application caches). 2017-12-10 17:33:03 +00:00
test_TerritoryManager.h Pass some strings and a vector as const refs. 2017-02-24 17:02:10 +00:00