Page MenuHomeWildfire Games

Face point when calling StopMoving()

Authored by wraitii on May 13 2019, 10:43 PM.


Group Reviewers
Restricted Owners Package(Owns No Changed Paths)
rP22355: Unit Motion - Face point when calling StopMoving()

If an external object calls StopMoving (since D1886 removed UnitMotion calling that on itself), we should point towards the target if that was wanted. This avoids doing it in a bunch of different places.

Test Plan

Check behaviour in game, notice that units are oriented correctly.

Diff Detail

rP 0 A.D. Public Repository
Automatic diff as part of commit; lint not applicable.
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

wraitii created this revision.May 13 2019, 10:43 PM

Build failure - The Moirai have given mortals hearts that can endure.

Link to build:

wraitii updated this revision to Diff 8398.Jun 9 2019, 5:27 PM

Rebased for committing.

Vulcan added a comment.Jun 9 2019, 5:33 PM

Successful build - Chance fights ever on the side of the prudent.

Link to build:

This revision was not accepted when it landed; it landed in state Needs Review.Jun 9 2019, 7:06 PM
This revision was automatically updated to reflect the committed changes.