1
This commit is contained in:
parent
a21febfc5a
commit
157d076089
@ -2,6 +2,7 @@
|
||||
|
||||
const int CUSTOM_ROOM_PVP = 0;
|
||||
const int CUSTOM_ROOM_MOBA = 1;
|
||||
const int CUSTOM_ROOM_NORMAL = 2;
|
||||
|
||||
class Room;
|
||||
class CustomTeam;
|
||||
|
@ -1177,6 +1177,8 @@ void RoomMgr::DispatchSpecRoom(f8::MsgHdr* hdr, const cs::CMJoin& msg)
|
||||
if (strings.size() > 1) {
|
||||
if (strings.at(1) == "custom_room") {
|
||||
_CMJoinCustomBattle(hdr, msg, CUSTOM_ROOM_PVP);
|
||||
} else if (strings.at(1) == "normal_room") {
|
||||
_CMJoinCustomBattle(hdr, msg, CUSTOM_ROOM_NORMAL);
|
||||
} else if (strings.at(1) == "moba_room") {
|
||||
_CMJoinCustomBattle(hdr, msg, CUSTOM_ROOM_MOBA);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user