1
0
mirror of https://github.com/OpenTTD/OpenTTD synced 2026-01-24 20:54:08 +01:00

Change: Use per-company group numbers. (#12297)

This is used by the default group name, replacing the use of group index.
This commit is contained in:
Peter Nelson
2024-05-07 20:01:28 +01:00
committed by GitHub
parent 8710e9b8c8
commit 9008d793ab
10 changed files with 30 additions and 9 deletions

View File

@@ -180,7 +180,7 @@ void BuildGuiGroupList(GUIGroupList &dst, bool fold, Owner owner, VehicleType ve
}
int r = StrNaturalCompare(last_group[0].second, last_group[1].second); // Sort by name (natural sorting).
if (r == 0) return a.group->index < b.group->index;
if (r == 0) return a.group->number < b.group->number;
return r < 0;
});