metalclaw / D2DCloneStatus

MIT License
0 stars 0 forks source link

Hardcore/Softcore and Ladder/Non-Ladder filters are not functional #1

Closed DimitreBogdanov closed 1 year ago

DimitreBogdanov commented 1 year ago

When trying to filter down by Hardcore/Softcore or by Ladder/Non-Ladder it doesn't actually filter down based on the input provided

DimitreBogdanov commented 1 year ago

Lines 104 and 109 in Form1.cs are using the region filter instead of the ladder/non-ladder and hc/sc filters, the code should be set to:

                if (cbFilterLadderNonLadder.SelectedIndex != 0 && res.ladder != cbFilterLadderNonLadder.SelectedIndex)
                {
                    return false;
                }
                //hc/sc filtering
                if (cbFilterHCSC.SelectedIndex != 0 && res.hc != cbFilterHCSC.SelectedIndex)
                {
                    return false;
                }

With those changes it seems to be working fine

metalclaw commented 1 year ago

A classic copy/paste error :D It's fixed now. Thanks, and good catch!