mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-09-18 12:05:14 -04:00
group names in tab list should be compared with colour codes included, to match C# client
This commit is contained in:
parent
0139788fee
commit
0191d02126
@ -2033,16 +2033,9 @@ static Int32 PlayerListWidget_PlayerCompare(UInt16 x, UInt16 y) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
static Int32 PlayerListWidget_GroupCompare(UInt16 x, UInt16 y) {
|
static Int32 PlayerListWidget_GroupCompare(UInt16 x, UInt16 y) {
|
||||||
UChar xGroupBuffer[String_BufferSize(STRING_SIZE)];
|
/* TODO: should we use colourless comparison? ClassicalSharp sorts groups with colours */
|
||||||
String xGroup = String_InitAndClearArray(xGroupBuffer);
|
String xGroup = TabList_UNSAFE_GetGroup(x);
|
||||||
String xGroupRaw = TabList_UNSAFE_GetGroup(x);
|
String yGroup = TabList_UNSAFE_GetGroup(y);
|
||||||
String_AppendColorless(&xGroup, &xGroupRaw);
|
|
||||||
|
|
||||||
UChar yGroupBuffer[String_BufferSize(STRING_SIZE)];
|
|
||||||
String yGroup = String_InitAndClearArray(yGroupBuffer);
|
|
||||||
String yGroupRaw = TabList_UNSAFE_GetGroup(y);
|
|
||||||
String_AppendColorless(&yGroup, &yGroupRaw);
|
|
||||||
|
|
||||||
return String_Compare(&xGroup, &yGroup);
|
return String_Compare(&xGroup, &yGroup);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user