1
This commit is contained in:
parent
c401b2085d
commit
9386f56abd
@ -42,10 +42,18 @@ bool Movement::UpdatePosition()
|
|||||||
next_point.dir.z = dir.z;
|
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 ||
|
if (owner_->GetPos().GetX() < 0 ||
|
||||||
owner_->GetPos().GetZ() < 0) {
|
owner_->GetPos().GetZ() < 0) {
|
||||||
abort();
|
abort();
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user