1
This commit is contained in:
parent
70cb3f1eb9
commit
d933f25c93
@ -28,13 +28,15 @@ bool Movement::UpdatePosition()
|
|||||||
float h = 0.0f;
|
float h = 0.0f;
|
||||||
if (owner_->room->map_instance->GetPosHeight(curr_point.curr_pos, h)) {
|
if (owner_->room->map_instance->GetPosHeight(curr_point.curr_pos, h)) {
|
||||||
#ifdef DEBUG1
|
#ifdef DEBUG1
|
||||||
a8::XPrintf("pos:%f,%f,%f h1:%f\n",
|
if (owner_->IsPlayer()) {
|
||||||
{
|
a8::XPrintf("pos:%f,%f,%f h1:%f\n",
|
||||||
owner_->GetPos().x,
|
{
|
||||||
owner_->GetPos().y,
|
owner_->GetPos().x,
|
||||||
owner_->GetPos().z,
|
owner_->GetPos().y,
|
||||||
h
|
owner_->GetPos().z,
|
||||||
});
|
h
|
||||||
|
});
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
curr_point.curr_pos.y = h;
|
curr_point.curr_pos.y = h;
|
||||||
} else {
|
} else {
|
||||||
@ -45,13 +47,15 @@ bool Movement::UpdatePosition()
|
|||||||
owner_->CheckSpecObject();
|
owner_->CheckSpecObject();
|
||||||
if (owner_->room->map_instance->GetPosHeight(owner_->GetPos(), h)) {
|
if (owner_->room->map_instance->GetPosHeight(owner_->GetPos(), h)) {
|
||||||
#ifdef DEBUG1
|
#ifdef DEBUG1
|
||||||
a8::XPrintf("pos:%f,%f,%f h2:%f\n",
|
if (owner_->IsPlayer()) {
|
||||||
{
|
a8::XPrintf("pos:%f,%f,%f h2:%f\n",
|
||||||
owner_->GetPos().x,
|
{
|
||||||
owner_->GetPos().y,
|
owner_->GetPos().x,
|
||||||
owner_->GetPos().z,
|
owner_->GetPos().y,
|
||||||
h
|
owner_->GetPos().z,
|
||||||
});
|
h
|
||||||
|
});
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
auto new_pos = owner_->GetPos();
|
auto new_pos = owner_->GetPos();
|
||||||
new_pos.y = h;
|
new_pos.y = h;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user