From 8609d72de581b6535cb16eb046144c9b5c8e2e9f Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Fri, 19 Apr 2024 21:06:50 +0800 Subject: [PATCH] 1 --- server/gameserver/roommgr.cc | 5 ----- server/gameserver/roommgr.h | 3 --- 2 files changed, 8 deletions(-) diff --git a/server/gameserver/roommgr.cc b/server/gameserver/roommgr.cc index a7924def..990804c3 100644 --- a/server/gameserver/roommgr.cc +++ b/server/gameserver/roommgr.cc @@ -464,11 +464,6 @@ void RoomMgr::OnJoinRoomOk(const cs::CMJoin& msg, Player* hum) { } -void RoomMgr::SetMatchMode(int mode) -{ - match_mode_ = mode; -} - void RoomMgr::AdjustCMJoin(cs::CMJoin* msg) { } diff --git a/server/gameserver/roommgr.h b/server/gameserver/roommgr.h index bb10cc7f..8f234775 100644 --- a/server/gameserver/roommgr.h +++ b/server/gameserver/roommgr.h @@ -66,8 +66,6 @@ class RoomMgr : public a8::Singleton int OverRoomNum(); std::shared_ptr GetRoomByUuid(const std::string& uuid); void AddOverRoom(const std::string& room_uuid); - int GetMatchMode() { return match_mode_; }; - void SetMatchMode(int mode); bool HasTask(); void OnJoinRoomOk(const cs::CMJoin& msg, Player* hum); std::shared_ptr GetCustomMemberBySocket(int socket_handle); @@ -100,7 +98,6 @@ class RoomMgr : public a8::Singleton private: int current_room_idx_ = 0; - int match_mode_ = 0; std::map> inactive_room_hash_; std::map> room_hash_;