This commit is contained in:
aozhiwei 2022-12-14 19:07:28 +08:00
parent 27d6969ccc
commit 0d8f6b17c2

View File

@ -95,25 +95,27 @@ void MoveHelper::CalcTargetPos(float distance)
abort();
}
#ifdef DEBUG
a8::XPrintf("CalcTargetPos src_pos:%f,%f,%f tar_pos:%f,%f%f is_hit:%d start:%f,%f,%f end:%f,%f,%f distance:%f\n",
{
point.src_pos.x,
point.src_pos.y,
point.src_pos.z,
point.tar_pos.x,
point.tar_pos.y,
point.tar_pos.z,
is_hit ? 1 : 0,
if (owner_->IsPlayer()) {
a8::XPrintf("CalcTargetPos src_pos:%f,%f,%f tar_pos:%f,%f%f is_hit:%d start:%f,%f,%f end:%f,%f,%f distance:%f\n",
{
point.src_pos.x,
point.src_pos.y,
point.src_pos.z,
point.tar_pos.x,
point.tar_pos.y,
point.tar_pos.z,
is_hit ? 1 : 0,
start.x,
start.y,
start.z,
start.x,
start.y,
start.z,
end.x,
end.y,
end.z,
point.distance
});
end.x,
end.y,
end.z,
point.distance
});
}
#endif
if (point.distance < 0.00001f / owner_->room->GetMapMeta()->pb->scale()) {