1
0
forked from 0ad/0ad
0ad/source
Itms 9da482ead4 Based on previous experimental changes, major update to the unit motion.
With this change, units will not check their movement against all
obstructions when moving: terrain and static obstructions are assumed to
be handled by the long-range pathfinder.
However, when static obstructions are changed, the paths have to be
invalidated. In order to minimize the performance impact, units will
check for obstructions when they move after a passability change. If
they collide with something, they will recompute a path that will take
into account the new passability map.

Also includes some code cleanup. This patch should not change
performance a lot: the lower number of checks should give a small
performance improvement while using the message broadcasting system
should hurt it a bit.

Fixes #3376, #3337, #1914.

This was SVN commit r16998.
2015-09-10 18:12:13 +00:00
..
collada Removes use of 'register' storage class, deprecated in C++11. Fixes -Wdeprecated-register build warnings in clang, fixes #3068. 2015-06-02 03:20:04 +00:00
graphics Replace some functor structs with lambdas, closures or range-based fors. 2015-08-19 03:33:04 +00:00
gui Fix wrong offset when clicking too close to the header of sortable lists. Also added some code comments. 2015-09-02 17:55:02 +00:00
i18n L10n code cleanup. 2015-07-29 23:44:05 +00:00
lib Revert emplace for associative containers. Fixes #3366. 2015-08-19 03:32:47 +00:00
lobby Fix #3386, patch by elexis. 2015-09-10 05:30:18 +00:00
maths New long-range pathfinder. 2015-06-12 18:58:24 +00:00
mocks More FreeBSD build fixes. 2012-01-30 06:21:11 +00:00
network Revert a wrong piece of code from 63e42fbd31. Refs #3293 2015-08-30 20:32:22 +00:00
pch Switch to std::shared_ptr and std::weak_ptr. 2015-01-25 03:10:58 +00:00
ps Replace some functor structs with lambdas, closures or range-based fors. 2015-08-19 03:33:04 +00:00
renderer Replace some functor structs with lambdas, closures or range-based fors. 2015-08-19 03:33:04 +00:00
scriptinterface Use in-place construction. 2015-07-29 23:44:17 +00:00
simulation2 Based on previous experimental changes, major update to the unit motion. 2015-09-10 18:12:13 +00:00
soundmanager Some range-based for loops and some style cleanup. 2015-07-29 01:07:23 +00:00
third_party Fix Arabic plural equation in tinygettext. 2015-09-03 16:42:05 +00:00
tools Fixes some issues in checkrefs.pl: soundgroups have new gender and lang tags, PMP version bump, GUI XML can include directories, civ data path changed 2015-09-06 04:42:28 +00:00
main.cpp Optionally limit the framerate in menus to 50 FPS, to save power. Patch by elexis, fixes #2882 2015-08-20 13:22:44 +00:00
test_setup.cpp CLogger: Use cppformat instead of sys_vswprintf. 2015-01-22 20:30:05 +00:00