修改竞技馆房间列表排序
This commit is contained in:
parent
eb265f69e8
commit
a9ffcb1c4a
|
@ -1448,7 +1448,7 @@ func CSGetPrivateRoomListHandler(s *netlib.Session, packetId int, data interface
|
||||||
pack.Datas = append(pack.Datas, CustomRoomMgrSingle.GetRoomList(p.Platform)...)
|
pack.Datas = append(pack.Datas, CustomRoomMgrSingle.GetRoomList(p.Platform)...)
|
||||||
|
|
||||||
sort.Slice(pack.Datas, func(i, j int) bool {
|
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)
|
p.SendToClient(int(gamehall.GameHallPacketID_PACKET_SC_GETPRIVATEROOMLIST), pack)
|
||||||
|
|
Loading…
Reference in New Issue