-
-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactored undo state code in preparation for #157.
Functionally, nothing should be different. - push_undo_state now takes an additional argument, 'func_name', which automatically checks the timeout for that function. - Functions have been made to disable and enable the creation of undo states. This should account for multiple calls within a call stack. - Instead of storing timers which count down every physics frame, OS.get_ticks_ms() is used to store the last time at which a function was called.
- Loading branch information
Showing
1 changed file
with
69 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters