This commit is contained in:
aozhiwei 2023-10-14 11:18:36 +08:00
parent c03312d644
commit 7902c4d582

View File

@ -247,7 +247,10 @@ bool HeroAgent::HasBuffEffect(int effect_id)
bool HeroAgent::IsNearGas(float range)
{
abort();
float x_distance = std::fabs(owner_->GetPos().ToGlmVec3().x -
owner_->room->GetGasData().pos_old.x);
float z_distance = std::fabs(owner_->GetPos().ToGlmVec3().z -
owner_->room->GetGasData().pos_old.y);
return false;
}