This commit is contained in:
aozhiwei 2023-04-19 19:59:41 +08:00
parent 526cbf2fc0
commit eb9c33e383
3 changed files with 4 additions and 1 deletions

View File

@ -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_;
}

View File

@ -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;

View File

@ -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;