This commit is contained in:
aozhiwei 2024-03-13 17:11:20 +08:00
parent a21febfc5a
commit 157d076089
2 changed files with 3 additions and 0 deletions

View File

@ -2,6 +2,7 @@
const int CUSTOM_ROOM_PVP = 0; const int CUSTOM_ROOM_PVP = 0;
const int CUSTOM_ROOM_MOBA = 1; const int CUSTOM_ROOM_MOBA = 1;
const int CUSTOM_ROOM_NORMAL = 2;
class Room; class Room;
class CustomTeam; class CustomTeam;

View File

@ -1177,6 +1177,8 @@ void RoomMgr::DispatchSpecRoom(f8::MsgHdr* hdr, const cs::CMJoin& msg)
if (strings.size() > 1) { if (strings.size() > 1) {
if (strings.at(1) == "custom_room") { if (strings.at(1) == "custom_room") {
_CMJoinCustomBattle(hdr, msg, CUSTOM_ROOM_PVP); _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") { } else if (strings.at(1) == "moba_room") {
_CMJoinCustomBattle(hdr, msg, CUSTOM_ROOM_MOBA); _CMJoinCustomBattle(hdr, msg, CUSTOM_ROOM_MOBA);
} }