File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -21,10 +21,7 @@ capabilities to the squad assignment list. The currently selected annotation is
2121shown in the panel to the left of the unit list. Clicking on the arrow icon
2222above the annotations will sort the unit list by that annotation value, or, if
2323the list is already sorted by the annotation value, will switch between
24- descending and ascending sort. Remember, vanilla forces units in other squads
25- to appear at the end of the list, so the bottom of the list will be slightly
26- out of order unless you have units from other squads filtered out (more
27- information on the filters below).
24+ descending and ascending sort.
2825
2926Annotations and sort orders
3027~~~~~~~~~~~~~~~~~~~~~~~~~~~
Original file line number Diff line number Diff line change @@ -183,6 +183,9 @@ static void sort_set_filter_fn(color_ostream &out) {
183183 DEBUG (log).print (" adding our filter function\n " );
184184 auto filter_vec = reinterpret_cast <filter_vec_type *>(&unitlist->filter_func );
185185 filter_vec->emplace_back (do_filter);
186+ DEBUG (log).print (" clearing partitions\n " ); // removes sorting other squads to end
187+ auto partitions_vec = reinterpret_cast <filter_vec_type *>(&unitlist->partitions );
188+ partitions_vec->clear ();
186189 unitlist->sort_flags .bits .NEEDS_RESORTED = true ;
187190 }
188191}
You can’t perform that action at this time.
0 commit comments