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

Fix redundant checks in world_remove #198

Merged
merged 1 commit into from
Feb 21, 2025
Merged

Conversation

lolmanurfunny
Copy link
Contributor

Brief Description of your Changes.

world_remove already early returns if the from archetype doesn't exist; however, it then proceeds to check for from a second time before calling entity_move. This PR removes that extra check and diffs the to and from archetypes using the ~= operator instead of not (from == to).

Impact of your Changes

None.

Tests Performed

None.

@Ukendio
Copy link
Owner

Ukendio commented Feb 21, 2025

Nice, thanks for the PR

@Ukendio Ukendio merged commit 4c5e5e1 into Ukendio:main Feb 21, 2025
2 checks passed
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.

2 participants