From d2d0f8373ce24153ae4eaf6d5642322f90b82aa8 Mon Sep 17 00:00:00 2001 From: Stephen Seo Date: Fri, 11 Aug 2023 15:48:16 +0900 Subject: [PATCH] Minor fix --- src/walker.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/walker.cc b/src/walker.cc index 357670d..abc284c 100644 --- a/src/walker.cc +++ b/src/walker.cc @@ -135,7 +135,9 @@ void Walker::draw(const Model &model) { } void Walker::set_body_pos(Vector3 pos) { - if (!Vector3Equals(target_body_pos, pos)) { + if (!Vector3Equals(Vector3{target_body_pos.x, target_body_pos.y - body_height, + target_body_pos.z}, + pos)) { target_body_pos = pos; target_body_pos.y += body_height;