1
This commit is contained in:
parent
de0d60503f
commit
183ef13fc3
@ -2036,3 +2036,8 @@ void Team::FillSMGameOver(cs::SMGameOver& msg)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool PBUtils::SupportSandTable(int proto_version)
|
||||||
|
{
|
||||||
|
return proto_version >= 2023051601;
|
||||||
|
}
|
||||||
|
@ -42,6 +42,8 @@ class PBUtils
|
|||||||
|
|
||||||
static void Human_SendSMPvePassWave(Human* self, int new_wave, int pve_max_wave, int wait_time);
|
static void Human_SendSMPvePassWave(Human* self, int new_wave, int pve_max_wave, int wait_time);
|
||||||
|
|
||||||
|
static bool SupportSandTable(int proto_version);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
static void _Ability_FillMFAttrAdditionList
|
static void _Ability_FillMFAttrAdditionList
|
||||||
(Ability* self,
|
(Ability* self,
|
||||||
|
@ -95,7 +95,6 @@ void Room::InitData(RoomInitInfo& init_info)
|
|||||||
force_entry_newbie_room_ = init_info.force_entry_newbie_room;
|
force_entry_newbie_room_ = init_info.force_entry_newbie_room;
|
||||||
pve_human_num = init_info.pve_human_num;
|
pve_human_num = init_info.pve_human_num;
|
||||||
is_newbie_room_ = init_info.is_newbie_room;
|
is_newbie_room_ = init_info.is_newbie_room;
|
||||||
support_sand_table_room = init_info.support_sand_table_room;
|
|
||||||
|
|
||||||
map_tpl_name_ = init_info.map_tpl_name;
|
map_tpl_name_ = init_info.map_tpl_name;
|
||||||
grid_service = init_info.grid_service;
|
grid_service = init_info.grid_service;
|
||||||
@ -944,11 +943,9 @@ bool Room::CanJoin(const std::string& accountid,
|
|||||||
if (IsNewBieRoom()) {
|
if (IsNewBieRoom()) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if (self_proto_version < 2023051601) {
|
if (PBUtils::SupportSandTable(self_proto_version) != SupportSandTable()) {
|
||||||
if (support_sand_table_room) {
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
if (msg.force_enter_newbie_room()) {
|
if (msg.force_enter_newbie_room()) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@ -3781,3 +3778,8 @@ bool Room::IsNewBieRoom()
|
|||||||
{
|
{
|
||||||
return is_newbie_room_;
|
return is_newbie_room_;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool Room::SupportSandTable()
|
||||||
|
{
|
||||||
|
return PBUtils::SupportSandTable(creator_proto_version_);
|
||||||
|
}
|
||||||
|
@ -238,6 +238,7 @@ public:
|
|||||||
int GetReportRoomMode();
|
int GetReportRoomMode();
|
||||||
int GetPvpMatchMode();
|
int GetPvpMatchMode();
|
||||||
void ForceOver();
|
void ForceOver();
|
||||||
|
bool SupportSandTable();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void ShuaAndroid();
|
void ShuaAndroid();
|
||||||
@ -355,7 +356,6 @@ private:
|
|||||||
int creator_channel_ = 0;
|
int creator_channel_ = 0;
|
||||||
bool force_entry_newbie_room_ = false;
|
bool force_entry_newbie_room_ = false;
|
||||||
bool is_newbie_room_ = false;
|
bool is_newbie_room_ = false;
|
||||||
bool support_sand_table_room = false;
|
|
||||||
a8::XTimerWp battle_report_timer_;
|
a8::XTimerWp battle_report_timer_;
|
||||||
|
|
||||||
int current_teamid_ = 0;
|
int current_teamid_ = 0;
|
||||||
|
@ -39,7 +39,6 @@ struct RoomInitInfo
|
|||||||
int pve_instance_id = 0;
|
int pve_instance_id = 0;
|
||||||
int pve_human_num = 0;
|
int pve_human_num = 0;
|
||||||
bool is_newbie_room = false;
|
bool is_newbie_room = false;
|
||||||
bool support_sand_table_room = false;
|
|
||||||
|
|
||||||
const mt::Map* map_meta = nullptr;
|
const mt::Map* map_meta = nullptr;
|
||||||
std::string map_tpl_name;
|
std::string map_tpl_name;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user