This commit is contained in:
aozhiwei 2024-09-09 11:11:33 +08:00
parent c9a84c8145
commit eb70f58aae

View File

@ -296,7 +296,7 @@ bool Movement::MoveToPos(const glm::vec3& target_pos)
ClearPath(); ClearPath();
#ifdef MYDEBUG1 #ifdef MYDEBUG1
if (owner_->IsPlayer()) { if (owner_->IsPlayer()) {
a8::XPrintf("CalcTaretPos old_size:%d distance:%f\n", {paths_.size(), distance}); a8::XPrintf("MoveToTarget old_size:%d distance:%f\n", {paths_.size(), distance});
} }
#endif #endif
Position pos = owner_->GetPos(); Position pos = owner_->GetPos();
@ -361,7 +361,7 @@ bool Movement::MoveToPos(const glm::vec3& target_pos)
} }
#ifdef MYDEBUG1 #ifdef MYDEBUG1
if (owner_->IsPlayer()) { 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 src_distance:%f\n", a8::XPrintf("MoveTotarget src_pos:%f,%f,%f tar_pos:%f,%f,%f is_hit:%d start:%f,%f,%f end:%f,%f,%f distance:%f src_distance:%f\n",
{ {
point.src_pos.GetX(), point.src_pos.GetX(),
point.src_pos.GetY(), point.src_pos.GetY(),