1
This commit is contained in:
parent
e96f9c0ad0
commit
273dff1fc6
@ -12,7 +12,6 @@ enum CreatureStatus
|
||||
{
|
||||
CS_Disable,
|
||||
CS_DisableAttack,
|
||||
CS_ForceTeam,
|
||||
CS_PreDieSuspended,
|
||||
CS_DeadNoDrop,
|
||||
CS_Reviving,
|
||||
|
@ -369,31 +369,16 @@ void CustomBattle::GameStart()
|
||||
if (IsNormalMode()) {
|
||||
auto room = RoomMgr::Instance()->GetJoinableRoom(shared_from_this());
|
||||
if (!room) {
|
||||
int game_times = 0;
|
||||
RoomType_e self_room_type = GetRoomType();
|
||||
//time_t register_time = f8::ExtractRegisterTimeFromSessionId(msg.session_id());
|
||||
//int proto_version = msg.proto_version();
|
||||
//int channel = f8::ExtractChannelIdFromAccountId(msg.account_id());
|
||||
time_t register_time = 0;
|
||||
int proto_version = 0;
|
||||
int channel = 0;
|
||||
if (IsPvp()) {
|
||||
room = RoomMgr::Instance()->CreateRoom
|
||||
(self_room_type,
|
||||
game_times,
|
||||
register_time,
|
||||
proto_version,
|
||||
channel,
|
||||
GetMapId(),
|
||||
GetRoomMode(),
|
||||
nullptr);
|
||||
} else {
|
||||
room = RoomMgr::Instance()->CreateRoom
|
||||
(self_room_type,
|
||||
game_times,
|
||||
register_time,
|
||||
proto_version,
|
||||
channel,
|
||||
GetMapId(),
|
||||
GetRoomMode(),
|
||||
nullptr);
|
||||
|
@ -2198,7 +2198,7 @@ void Human::SendMobaTeamNotify()
|
||||
|
||||
void Human::PushJoinRoomMsg()
|
||||
{
|
||||
if (!a8::HasBitFlag(status, CS_ForceTeam)) {
|
||||
{
|
||||
cs::SMJoinedNotify notifymsg;
|
||||
notifymsg.set_error_code(0);
|
||||
notifymsg.set_server_info(JsonDataMgr::Instance()->server_info);
|
||||
@ -2548,11 +2548,6 @@ void Team::FillMFTeamFull(cs::MFTeamFull* p)
|
||||
});
|
||||
}
|
||||
|
||||
bool PBUtils::SupportSandTable(int proto_version)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
void SandTable::FillMFSandTable(cs::SMUpdate* msg, Human* hum, FrameData* framedata)
|
||||
{
|
||||
if (room_->GetGasData().GetGasMode() != GasInactive) {
|
||||
|
@ -42,8 +42,6 @@ class PBUtils
|
||||
|
||||
static void Human_SendSMPvePassWave(Human* self, int new_wave, int pve_max_wave, int wait_time);
|
||||
|
||||
static bool SupportSandTable(int proto_version);
|
||||
|
||||
private:
|
||||
static void _Ability_FillMFAttrAdditionList
|
||||
(Ability* self,
|
||||
|
@ -89,10 +89,6 @@ void Room::InitData(RoomInitInfo& init_info)
|
||||
room_mode_ = init_info.room_mode;
|
||||
room_uuid_ = init_info.room_uuid;
|
||||
room_type_ = init_info.room_type;
|
||||
creator_game_times_ = init_info.creator_game_times;
|
||||
creator_register_time_ = init_info.creator_register_time;
|
||||
creator_proto_version_ = init_info.creator_proto_version;
|
||||
creator_channel_ = init_info.creator_channel;
|
||||
pve_human_num = init_info.pve_human_num;
|
||||
|
||||
map_tpl_name_ = init_info.map_tpl_name;
|
||||
@ -3485,7 +3481,7 @@ void Room::ForceOver()
|
||||
|
||||
bool Room::SupportSandTable()
|
||||
{
|
||||
return PBUtils::SupportSandTable(creator_proto_version_);
|
||||
return true;
|
||||
}
|
||||
|
||||
void Room::OnAddHuman(Human* hum)
|
||||
|
@ -383,10 +383,6 @@ private:
|
||||
int battle_team_count_ = 0;
|
||||
const mt::AirLine* airline_ = nullptr;
|
||||
bool show_handed_ = false;
|
||||
int creator_game_times_ = 0;
|
||||
int creator_register_time_ = 0;
|
||||
int creator_proto_version_ = 0;
|
||||
int creator_channel_ = 0;
|
||||
a8::XTimerWp battle_report_timer_;
|
||||
|
||||
int current_teamid_ = 0;
|
||||
|
@ -377,10 +377,6 @@ int RoomMgr::AllocRoomIdx()
|
||||
}
|
||||
|
||||
std::shared_ptr<Room> RoomMgr::CreateRoom(RoomType_e room_type,
|
||||
int game_times,
|
||||
int creator_register_time,
|
||||
int creator_proto_version,
|
||||
int creator_channel,
|
||||
int map_id,
|
||||
RoomMode_e room_mode,
|
||||
std::shared_ptr<CustomBattle> custom_battle)
|
||||
@ -396,10 +392,6 @@ std::shared_ptr<Room> RoomMgr::CreateRoom(RoomType_e room_type,
|
||||
init_info.room_type = room_type;
|
||||
init_info.room_mode = room_mode;
|
||||
init_info.init_map_id = map_id;
|
||||
init_info.creator_game_times = game_times;
|
||||
init_info.creator_register_time = creator_register_time;
|
||||
init_info.creator_proto_version = creator_proto_version;
|
||||
init_info.creator_channel = creator_channel;
|
||||
#if 0
|
||||
init_info.pve_instance_id = msg.pve_instance_id();
|
||||
init_info.pve_human_num = std::max(1, msg.team_members_size());
|
||||
|
@ -32,10 +32,6 @@ struct RoomInitInfo
|
||||
RoomMode_e room_mode = kPvpMode;
|
||||
std::string room_uuid;
|
||||
RoomType_e room_type = RoomType_NewBrid;
|
||||
int creator_game_times = 0;
|
||||
int creator_register_time = 0;
|
||||
int creator_proto_version = 0;
|
||||
int creator_channel = 0;
|
||||
int init_map_id = 0;
|
||||
int pve_instance_id = 0;
|
||||
int pve_human_num = 0;
|
||||
@ -88,10 +84,6 @@ class RoomMgr : public a8::Singleton<RoomMgr>
|
||||
void UnBindCustomMemberSocket(int socket_handle);
|
||||
std::shared_ptr<Room> GetJoinableRoom(std::shared_ptr<CustomBattle> p);
|
||||
std::shared_ptr<Room> CreateRoom(RoomType_e room_type,
|
||||
int game_times,
|
||||
int creator_register_time,
|
||||
int creator_proto_version,
|
||||
int creator_channel,
|
||||
int map_id,
|
||||
RoomMode_e room_mode,
|
||||
std::shared_ptr<CustomBattle> custom_battle);
|
||||
|
Loading…
x
Reference in New Issue
Block a user