1
This commit is contained in:
parent
27d6969ccc
commit
0d8f6b17c2
@ -95,6 +95,7 @@ void MoveHelper::CalcTargetPos(float distance)
|
|||||||
abort();
|
abort();
|
||||||
}
|
}
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
|
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",
|
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.x,
|
||||||
@ -114,6 +115,7 @@ void MoveHelper::CalcTargetPos(float distance)
|
|||||||
end.z,
|
end.z,
|
||||||
point.distance
|
point.distance
|
||||||
});
|
});
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (point.distance < 0.00001f / owner_->room->GetMapMeta()->pb->scale()) {
|
if (point.distance < 0.00001f / owner_->room->GetMapMeta()->pb->scale()) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user