diff --git a/server/gameserver/room.cc b/server/gameserver/room.cc index 3b4a12bf..bfd398fc 100644 --- a/server/gameserver/room.cc +++ b/server/gameserver/room.cc @@ -94,6 +94,7 @@ void Room::InitData(RoomInitInfo& init_info) creator_channel_ = init_info.creator_channel; force_entry_newbie_room_ = init_info.force_entry_newbie_room; pve_human_num = init_info.pve_human_num; + is_newbie_room_ = init_info.is_newbie_room; map_tpl_name_ = init_info.map_tpl_name; grid_service = init_info.grid_service; @@ -3733,5 +3734,5 @@ void Room::ForceOver() bool Room::IsNewBieRoom() { - return true; + return is_newbie_room_; } diff --git a/server/gameserver/room.h b/server/gameserver/room.h index 0a671241..6c571867 100644 --- a/server/gameserver/room.h +++ b/server/gameserver/room.h @@ -352,6 +352,7 @@ private: int creator_proto_version_ = 0; int creator_channel_ = 0; bool force_entry_newbie_room_ = false; + bool is_newbie_room_ = false; a8::XTimerWp battle_report_timer_; int current_teamid_ = 0; diff --git a/server/gameserver/roommgr.h b/server/gameserver/roommgr.h index 2e988041..67e4ec7f 100644 --- a/server/gameserver/roommgr.h +++ b/server/gameserver/roommgr.h @@ -38,6 +38,7 @@ struct RoomInitInfo int init_map_id = 0; int pve_instance_id = 0; int pve_human_num = 0; + bool is_newbie_room = false; const mt::Map* map_meta = nullptr; std::string map_tpl_name;