Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Restore orders when stopping restoring the past #29

Open
tdauth opened this issue Jan 23, 2021 · 1 comment
Open

Restore orders when stopping restoring the past #29

tdauth opened this issue Jan 23, 2021 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@tdauth
Copy link
Owner

tdauth commented Jan 23, 2021

When time is inverted into the same direction as a unit it should continue with its previous order.
This prevents harvesting units from stopping harvesting and repairing units etc. etc. etc.

@tdauth tdauth added the bug Something isn't working label Jan 23, 2021
@tdauth tdauth self-assigned this Jan 23, 2021
@tdauth
Copy link
Owner Author

tdauth commented Feb 1, 2021

We store the current animations and positions but orders only for "unload" etc.
Add a simple ChangeUnitEventOrder which simply stores the id and target of the current order without doing anything.
Use this at restore to set the current order and target.
Use this information on onInvertTimeSame to restore the order.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant