diff --git a/server/gameserver/custom_battle.h b/server/gameserver/custom_battle.h index cdb6574b..1679e80e 100644 --- a/server/gameserver/custom_battle.h +++ b/server/gameserver/custom_battle.h @@ -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; diff --git a/server/gameserver/roommgr.cc b/server/gameserver/roommgr.cc index 581cbf15..03811cb2 100644 --- a/server/gameserver/roommgr.cc +++ b/server/gameserver/roommgr.cc @@ -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); }