1
0
forked from 0ad/0ad
0ad/source/simulation2
wraitii 5d96346ac5 Fix units 'waltzing' in place in formation.
Following 847f3a9995,
Units in formation can get very small movement offsets, that nonetheless
require large rotations, and thus at least 2 turns to accomplish.
However, following 847f3a9995, PossiblyAtDestination fires() only after
the first rotation, so the unit ends up 'waltzing' in place.
Before that diff, the unit never even moved since PossiblyAtDestination
fired straight away.

This is also noticeable since IDLE formation re-order their members
since 71a61d5f50.

The fix here is to ignore rotation time for very small offsets, which
lets units accomplish the movement in one turn and fixes the issue.

Reported by: wowgetoffyourcellphone
Reviewed By: Freagarach
Tested By: langbart
Differential Revision: https://code.wildfiregames.com/D3518
This was SVN commit r24831.
2021-02-04 16:58:19 +00:00
..
components Fix units 'waltzing' in place in formation. 2021-02-04 16:58:19 +00:00
docs Replace deprecated jsval with JS::Value. 2017-08-28 10:27:36 +00:00
helpers Replaces UNICODE characters in the code by consistent ASCII characters. 2021-01-15 10:07:36 +00:00
scripting Fixes building snapping for non-square foundations. Fixes #5976 2021-02-03 17:03:44 +00:00
serialization Change ENSURE in BinarySerializer to try and get more debug data. 2021-01-30 09:13:13 +00:00
system Revert cf6aaf37a4, causing false OOS in visual replays. 2021-01-22 17:13:12 +00:00
tests Fix lag on OOS with AIs 2021-01-16 10:33:00 +00:00
MessageTypes.h Improve behaviour of formations stuck within other units. 2021-01-05 10:12:47 +00:00
Simulation2.cpp Add a Dev Overlay checkbox to activate RejoinTest from the session. 2020-12-17 17:53:13 +00:00
Simulation2.h Add a Dev Overlay checkbox to activate RejoinTest from the session. 2020-12-17 17:53:13 +00:00
TypeList.h Store turret positions in map files. 2020-11-11 19:40:44 +00:00