-
Notifications
You must be signed in to change notification settings - Fork 102
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat!(selection): Make IdMatches select filter OR composable (#1062)
* feat!(selection): Make IdMatches select filter OR composable Previously IdMatches would compose as AND, e.g.: `_IdMatches_armpw_IdMatches_armflea` would keep only units that have the unitdef name armpw AND armflea at the same time, which was silly. This commit makes it so that the previous filter keeps only units that have unitdef name armpw OR armflea. Respectively `_Not_IdMatches_armpw_Not_IdMatches_armflea` maintains previous behavior, keep only units that don't have unitdef name armpw OR armflea. Co-authored-by: sprunk <[email protected]> * Add changelog stuff * Make idMatchesSet a non member variable * Allocate idMatches in local scope --------- Co-authored-by: sprunk <[email protected]>
- Loading branch information
Showing
3 changed files
with
34 additions
and
4 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