1
0
forked from 0ad/0ad
0ad/source
Matei e2add58410 # Improved pathfinder precision.
Added code to requestLowLevelPath that modifies the final waypoint to
use exactly the coordinates where the player clicked, instead of the
rounded-to-nearest-tile coordinates from the A* pathfinder. A more
complete fix required eventually might be to make the A* engine itself
aware of fractional locations within a tile but for now this seemed like
a simple thing to do.

Also fixed a bug that was causing the final step of the path not to be
added: the code was adding an ORDER_PATH_END_MARKER but no
ORDER_GOTO_NOPATHING for the final point. The ORDER_PATH_END_MARKER
doesn't seem to do anything useful here so the unit never went that last
step.

Also fixed a bug with "pass-through-allies" that was causing units to
avoid allies anyway: although the pathfinder assumed you could pass
through allies, when you actually bumped into one while executing a goto
instruction, the collision test used did not check for
pass-through-allies so you ended up avoiding allies anyway. This might
not be too horrible if it works in practice (since the avoidance was
done using simple local work, not a full repath) but I've removed it for
now since it might cause problems with formations, when avoidance will
not be trivial.

This was SVN commit r4226.
2006-08-17 21:09:46 +00:00
..
graphics Fixed deunicodification of actor strings - need to be converted from CStr to std::wstring when passed to Atlas 2006-08-06 18:41:07 +00:00
gui # housekeeping 2006-07-20 14:37:58 +00:00
i18n # housekeeping 2006-07-26 13:10:13 +00:00
lib # mac compat 2006-08-12 16:42:50 +00:00
maths # MacOS X compat (part 1) 2006-07-26 14:04:52 +00:00
pch More header-file rejigging. 2006-06-09 18:32:00 +00:00
ps Reorganized some building placement code. 2006-08-08 16:00:47 +00:00
renderer # MacOS X compat (part 1) 2006-07-26 14:04:52 +00:00
scripting Fixed deunicodification of actor strings - need to be converted from CStr to std::wstring when passed to Atlas 2006-08-06 18:41:07 +00:00
simulation # Improved pathfinder precision. 2006-08-17 21:09:46 +00:00
sound # housekeeping 2006-06-04 22:27:40 +00:00
tools Fixed deunicodification of actor strings - need to be converted from CStr to std::wstring when passed to Atlas 2006-08-06 18:41:07 +00:00
main.cpp # CSimulation cleanup and optimization (1) 2006-07-12 14:36:59 +00:00