From: Stephen Seo Date: Fri, 11 Aug 2023 06:48:16 +0000 (+0900) Subject: Minor fix X-Git-Url: https://git.seodisparate.com/stephenseo/static/gitweb.js?a=commitdiff_plain;h=d2d0f8373ce24153ae4eaf6d5642322f90b82aa8;p=jumpartifact.com_demo_0 Minor fix --- 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;