1
This commit is contained in:
parent
27d6969ccc
commit
0d8f6b17c2
@ -95,25 +95,27 @@ void MoveHelper::CalcTargetPos(float distance)
|
|||||||
abort();
|
abort();
|
||||||
}
|
}
|
||||||
#ifdef DEBUG
|
#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",
|
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.x,
|
||||||
point.src_pos.z,
|
point.src_pos.y,
|
||||||
point.tar_pos.x,
|
point.src_pos.z,
|
||||||
point.tar_pos.y,
|
point.tar_pos.x,
|
||||||
point.tar_pos.z,
|
point.tar_pos.y,
|
||||||
is_hit ? 1 : 0,
|
point.tar_pos.z,
|
||||||
|
is_hit ? 1 : 0,
|
||||||
|
|
||||||
start.x,
|
start.x,
|
||||||
start.y,
|
start.y,
|
||||||
start.z,
|
start.z,
|
||||||
|
|
||||||
end.x,
|
end.x,
|
||||||
end.y,
|
end.y,
|
||||||
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