1
This commit is contained in:
parent
3ef95fe2d0
commit
e9f0a994bd
@ -20,7 +20,7 @@ class CustomBattle : public std::enable_shared_from_this<CustomBattle>
|
||||
Room* GetRoom() { return room_; }
|
||||
void SetRoom(Room* room) { room_ = room; }
|
||||
const std::string& GetRoomId() { return room_id_; }
|
||||
const std::string& GetRoomUuid() { return room_uuid_; }
|
||||
const std::string& GetMatchRoomUuid() { return room_uuid_; }
|
||||
const std::string& GetSign() { return sign_; }
|
||||
const std::shared_ptr<a8::XObject>& GetRawData() { return raw_data_; }
|
||||
int GetZoneId() { return zone_id_; }
|
||||
|
@ -655,7 +655,7 @@ void RoomMgr::SendGetCustomBattleData(std::shared_ptr<cs::CMJoin> join_msg,
|
||||
custom_battle->ParseResult(*rsp_obj);
|
||||
if (custom_battle->GetParseOk()) {
|
||||
cb(0, "", custom_battle);
|
||||
RoomMgr::Instance()->custom_room_hash_[custom_battle->GetRoomUuid()] = custom_battle;
|
||||
RoomMgr::Instance()->custom_room_hash_[custom_battle->GetMatchRoomUuid()] = custom_battle;
|
||||
} else {
|
||||
cb(1, "", custom_battle);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user