1
This commit is contained in:
parent
cd50e0b2e2
commit
2f53ba2619
@ -470,6 +470,7 @@ void BattleDataContext::ParseResult(a8::XObject& obj)
|
||||
}
|
||||
}
|
||||
}
|
||||
parse_ok = hero_ability_->hero_meta != nullptr;
|
||||
}
|
||||
|
||||
void BattleDataContext::GetHeroLvQuality(long long& hero_uniid, int& hero_lv, int& quality)
|
||||
|
@ -22,6 +22,7 @@ struct BattleDataContext
|
||||
std::string payload;
|
||||
int errcode = 0;
|
||||
std::string errmsg;
|
||||
bool parse_ok = false;
|
||||
|
||||
std::shared_ptr<a8::XObject> hero_dto;
|
||||
std::shared_ptr<a8::XObject> weapon_dto1;
|
||||
|
@ -176,6 +176,9 @@ void RoomMgr::_CMJoin(f8::MsgHdr& hdr, const cs::CMJoin& msg)
|
||||
RoomMgr::Instance()->JoinErrorHandle(msg, 2, socket_handle);
|
||||
return;
|
||||
}
|
||||
if (!results.at(0)->parse_ok) {
|
||||
return;
|
||||
}
|
||||
int game_times = 0;
|
||||
RoomType_e self_room_type = GetHumanRoomType(msg, game_times);
|
||||
if (self_room_type < RT_OldBrid1) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user