This commit is contained in:
aozhiwei 2024-01-30 20:57:10 +08:00
parent 940ad335c2
commit eb80584ea0

View File

@ -1843,7 +1843,16 @@ void Player::_CMReportSpecShotHitPos(f8::MsgHdr* hdr, const cs::CMReportSpecShot
void Player::_CMWatchTarget(f8::MsgHdr* hdr, const cs::CMWatchTarget& msg)
{
cs::SMWatchTarget rsp_msg;
Human* target = room->GetHumanByUniId(msg.target_uniid());
if (target) {
FollowTarget(target);
target->StartRefreshViewTimer();
rsp_msg.set_target_uniid(target->GetUniId());
} else {
rsp_msg.set_error_code(1);
}
SendNotifyMsg(rsp_msg);
}
void Player::SetShotHold(bool hold)