修改竞技馆房间列表排序

This commit is contained in:
sk 2024-11-20 18:31:22 +08:00
parent eb265f69e8
commit a9ffcb1c4a
1 changed files with 1 additions and 1 deletions

View File

@ -1448,7 +1448,7 @@ func CSGetPrivateRoomListHandler(s *netlib.Session, packetId int, data interface
pack.Datas = append(pack.Datas, CustomRoomMgrSingle.GetRoomList(p.Platform)...)
sort.Slice(pack.Datas, func(i, j int) bool {
return pack.Datas[i].GetCreateTs() < pack.Datas[j].GetCreateTs()
return pack.Datas[i].GetCreateTs() > pack.Datas[j].GetCreateTs()
})
p.SendToClient(int(gamehall.GameHallPacketID_PACKET_SC_GETPRIVATEROOMLIST), pack)