1
This commit is contained in:
parent
1dfc10cad9
commit
e3c42618b9
@ -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;
|
||||
|
@ -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();
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user