Skip to content

Commit

Permalink
Merge pull request #4914 from kuronekochomusuke/advancedSearchQuadVee…
Browse files Browse the repository at this point in the history
…Filter

add missing filter for QuadVee
  • Loading branch information
neoancient authored Nov 22, 2023
2 parents 9cf6344 + c5c1793 commit ea68b60
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions megamek/src/megamek/common/MechSearchFilter.java
Original file line number Diff line number Diff line change
Expand Up @@ -811,6 +811,9 @@ public static boolean isMatch(MechSummary mech, MechSearchFilter f) {
if (f.filterQuad == 1) {
entityTypes = entityTypes | Entity.ETYPE_QUAD_MECH;
}
if (f.filterQuadVee == 1) {
entityTypes = entityTypes | Entity.ETYPE_QUADVEE;
}
if (f.filterAero == 1) {
entityTypes = entityTypes | Entity.ETYPE_AERO;
}
Expand Down Expand Up @@ -890,6 +893,9 @@ public static boolean isMatch(MechSummary mech, MechSearchFilter f) {
if (f.filterQuad == 2) {
entityTypes = entityTypes | Entity.ETYPE_QUAD_MECH;
}
if (f.filterQuadVee == 2) {
entityTypes = entityTypes | Entity.ETYPE_QUADVEE;
}
if (f.filterAero == 2) {
entityTypes = entityTypes | Entity.ETYPE_AERO;
}
Expand Down

0 comments on commit ea68b60

Please sign in to comment.