1
This commit is contained in:
parent
940ad335c2
commit
eb80584ea0
@ -1843,7 +1843,16 @@ void Player::_CMReportSpecShotHitPos(f8::MsgHdr* hdr, const cs::CMReportSpecShot
|
|||||||
|
|
||||||
void Player::_CMWatchTarget(f8::MsgHdr* hdr, const cs::CMWatchTarget& msg)
|
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)
|
void Player::SetShotHold(bool hold)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user