-
-
Notifications
You must be signed in to change notification settings - Fork 517
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix processes' toggle buttons not matching their actual state (#5632)
* Fix process toggle buttons not matching their actual states * Fix button flickering * Make processes save their enabled-state when updated * Remove obsolete comment * Remove a redundant function call * Remove a redundant 'using' * Style fix * Fix processes not being togglable on early multicellular organisms * Style fix * Remove debug prints from ProcessStatistics * Make TweakedProcess a struct (it was unnecessary for it to be a class) * Revert a line break * Style fix * Add an error print * Add a debug exception throw * Fix wrong code revert * Remove some new comparisons * Reduce temporary memory allocations * Move memory allocations out of ProcessSystem * Save some more memory allocations * Fix style * Revert temporary memory; move to a new approach * Remove an unneeded tempMemory allocation * Change unmarked process removal algorithm * Style fix * Improve removal algorithm * Some code cleanup * Add some clarifying comments, remove the initial process unmarking cycle * Change the way the process button is toggled * Fix the order of process panel processes changing when toggling on/off state * Fixed toggle button status no longer working after the last commit * Improved efficiency of process list computation for production effect so that it doesn't uselessly try to combine processes * Fix bug in process calculation where old rates where added to new ones causing process speed to just go up, and fixed process order being able to change based on the old data which is not very good for reliability as it'd be very hard to track down problems that only occur when old cached data is in specific order --------- Co-authored-by: Henri Hyyryläinen <[email protected]>
- Loading branch information
1 parent
58afefb
commit fd36371
Showing
13 changed files
with
172 additions
and
53 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
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
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
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
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
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
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
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
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
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
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
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
Oops, something went wrong.