This commit is contained in:
aozhiwei 2023-12-15 13:19:42 +08:00
parent 1dfc10cad9
commit e3c42618b9
3 changed files with 3 additions and 4 deletions

View File

@ -1145,8 +1145,7 @@ bool Bullet::NoAdjustPos()
return false;
}
void Bullet::ReportHookHitPos(const glm::vec3& hit_pos)
void Bullet::ReportHookHitPos(int hit_obj_uniid, const glm::vec3& hit_pos)
{
if (later_removed_) {
return;

View File

@ -62,7 +62,7 @@ class Bullet : public MoveableEntity, public IBullet
virtual const Position& GetPos() override;
virtual void ProcRequestBulletDmg(int shield_hit, int strength_wall_uniid, int target_uniid, const glm::vec3& pos) override;
void ReportHookHitPos(const glm::vec3& hit_pos);
void ReportHookHitPos(int hit_obj_uniid, const glm::vec3& hit_pos);
protected:
Bullet();

View File

@ -1821,7 +1821,7 @@ void Player::_CMReportHookHitPos(f8::MsgHdr* hdr, const cs::CMReportHookHitPos&
Bullet* b = (Bullet*)e;
glm::vec3 hit_pos;
TypeConvert::FromPb(hit_pos, &msg.pos());
b->ReportHookHitPos(hit_pos);
b->ReportHookHitPos(msg.hit_obj_uniid(), hit_pos);
}
}