forked from cataclysmbnteam/Cataclysm-BN
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor power grid traverse code (cataclysmbnteam#1599)
I was randomly reading code and found this function confusing. Refactored for readability. * Split graph traversion and whatever caller wants to do with items. * Added comments in places where I failed to understand fast. * Removed `amount` updating from traversing and few hacks on call-sites caused by this. * Removed redundant "only vehicles" traversion method. * Removed raw pointers from public interface.
- Loading branch information
1 parent
fe7444e
commit 8d144d2
Showing
3 changed files
with
120 additions
and
98 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