tdauth / tenet

Tenet-style prototype map for Warcraft III: Reforged
0 stars 0 forks source link

Restore orders when stopping restoring the past #29

Open tdauth opened 3 years ago

tdauth commented 3 years ago

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 commented 3 years ago

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.