From 53e8006e752feb2df16c6d0d76f3f32a612ff4f6 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Sat, 11 May 2019 23:52:37 +0200 Subject: [PATCH] 2D3D:: fixed leg movement --- graph.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/graph.cpp b/graph.cpp index 311a08a7..513c6f61 100644 --- a/graph.cpp +++ b/graph.cpp @@ -632,8 +632,11 @@ transmatrix otherbodyparts(const transmatrix& V, color_t col, eMonster who, doub Tleft = VFOOT * Mirror * xpush(-rightfoot); } else { - Tright = V * cspin(0, 2, rightfoot/SCALE * 3); - Tleft = V * Mirror * cspin(2, 0, rightfoot/SCALE * 3); + transmatrix V1 = V; + if(WDIM == 2) V1 = V1 * zpush(geom3::GROIN); + Tright = V1 * cspin(0, 2, rightfoot/SCALE * 3); + Tleft = V1 * Mirror * cspin(2, 0, rightfoot/SCALE * 3); + if(WDIM == 2) Tleft = Tleft * zpush(-geom3::GROIN), Tright = Tright * zpush(-geom3::GROIN); } if(who == moWaterElemental && DIM == 2) {