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

refactor(WetnessEffects): flatten logic for clarity and maintainability #249

Open
wants to merge 2 commits into
base: dev
Choose a base branch
from

Conversation

SquirrelModeller
Copy link

@SquirrelModeller SquirrelModeller commented Apr 5, 2024

Flatten deeply nested if-statements in the Draw function. This refactor does not introduce any new functionality or performance improvements. Makes code more redable.

Details:
I disliked the deeply nested code which made it hard to read, so I have de-nested it somewhat. I did not make any new functions to de-nest it even further, as I do not know if that would be too much of a change. I can separate the logic into sub-functions to de-nest this even further.

Edit: I have a 1080 card, and there is a problem with the 1000 series and below, so I have not tested the code to see if it messes anything up. It really shouldn't as I have have just de-nested the logic here.

Flatten deeply nested if-statements in the Draw function. This refactor does not introduce any new functionality or performance improvements. Makes code more redable.
@SquirrelModeller
Copy link
Author

SquirrelModeller commented Apr 5, 2024

I tried to force-push a change so that the blame would be ignored for whitespaces, but git just does not allow that (because any changes to anything will always be recorded). So that is why there was an identical force-push.

@alandtse
Copy link
Collaborator

alandtse commented Apr 6, 2024

Thanks. Normally all PRs should be tested at least on your machine. That said, there's a proposed fix for the 1K series bug that may resolve it. https://discord.com/channels/1080142797870485606/1148180928661823488/1226040081090088982.

I'll leave it to the active maintainers of wetness to provide further comments or concerns.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants