diff --git a/server/gameserver/movement.cc b/server/gameserver/movement.cc index 272361d6..5fb664f9 100644 --- a/server/gameserver/movement.cc +++ b/server/gameserver/movement.cc @@ -25,7 +25,6 @@ bool Movement::UpdatePosition() } MovePathPoint& curr_point = paths_[path_index_]; { - a8::Vec2 dir = a8::Vec2(curr_point.dir.x, curr_point.dir.z); float h = 0.0f; if (owner_->room->map_instance->GetPosHeight(curr_point.curr_pos, h)) { #ifdef DEBUG1 @@ -41,7 +40,7 @@ bool Movement::UpdatePosition() } else { //abort(); } - curr_point.curr_pos.AddVec2(dir * owner_->GetSpeed()); + curr_point.curr_pos.AddGlmVec3(curr_point.dir * owner_->GetSpeed()); owner_->SetPos(curr_point.curr_pos); if (owner_->room->map_instance->GetPosHeight(owner_->GetPos(), h)) { #ifdef DEBUG1