From f226f18db7aa3e740ed3a34688be3d748b693299 Mon Sep 17 00:00:00 2001 From: Saveliy Skresanov Date: Thu, 20 Feb 2025 21:58:41 +0700 Subject: [PATCH] Revert the STKM change since it breaks controllers. This reverts commit cb7d9ff310938370b071eb9178e1ef07c5d87c1c. --- src/simulation/elements/STKM.cpp | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/src/simulation/elements/STKM.cpp b/src/simulation/elements/STKM.cpp index 264d356e2..74f1504ee 100644 --- a/src/simulation/elements/STKM.cpp +++ b/src/simulation/elements/STKM.cpp @@ -709,25 +709,25 @@ void Element_STKM_init_legs(Simulation * sim, playerst *playerp, int i) x = (int)(sim->parts[i].x+0.5f); y = (int)(sim->parts[i].y+0.5f); - playerp->legs[0] = float(x+2); - playerp->legs[1] = float(y+5); - playerp->legs[2] = float(x+2); - playerp->legs[3] = float(y+5); + playerp->legs[0] = float(x-1); + playerp->legs[1] = float(y+6); + playerp->legs[2] = float(x-1); + playerp->legs[3] = float(y+6); - playerp->legs[4] = float(x+2); - playerp->legs[5] = float(y+10); - playerp->legs[6] = float(x+2); - playerp->legs[7] = float(y+10); + playerp->legs[4] = float(x-3); + playerp->legs[5] = float(y+12); + playerp->legs[6] = float(x-3); + playerp->legs[7] = float(y+12); - playerp->legs[8] = float(x-2); - playerp->legs[9] = float(y+5); - playerp->legs[10] = float(x-2); - playerp->legs[11] = float(y+5); + playerp->legs[8] = float(x+1); + playerp->legs[9] = float(y+6); + playerp->legs[10] = float(x+1); + playerp->legs[11] = float(y+6); - playerp->legs[12] = float(x-2); - playerp->legs[13] = float(y+10); - playerp->legs[14] = float(x-2); - playerp->legs[15] = float(y+10); + playerp->legs[12] = float(x+3); + playerp->legs[13] = float(y+12); + playerp->legs[14] = float(x+3); + playerp->legs[15] = float(y+12); for (int i = 0; i < 8; i++) playerp->accs[i] = 0;