This commit is contained in:
aozhiwei 2023-04-05 18:16:45 +08:00
parent c401b2085d
commit 9386f56abd

View File

@ -42,10 +42,18 @@ bool Movement::UpdatePosition()
next_point.dir.z = dir.z;
}
}
if (owner_->GetPos().GetX() < 0) {
owner_->GetMutablePos().SetX(0);
}
if (owner_->GetPos().GetZ() < 0) {
owner_->GetMutablePos().SetZ(0);
}
#if 0
if (owner_->GetPos().GetX() < 0 ||
owner_->GetPos().GetZ() < 0) {
abort();
}
#endif
return true;
}