From 20c261826d3e0cf5c00cbd6ba9312bbed86900cd Mon Sep 17 00:00:00 2001 From: jacksonmj Date: Tue, 7 May 2013 15:01:24 +0100 Subject: [PATCH] STKM - fix jumping in the x direction in different gravity modes --- src/simulation/elements/STKM.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/simulation/elements/STKM.cpp b/src/simulation/elements/STKM.cpp index 52deee104..faeb5f912 100644 --- a/src/simulation/elements/STKM.cpp +++ b/src/simulation/elements/STKM.cpp @@ -227,7 +227,10 @@ int Element_STKM::run_stickman(playerst* playerp, UPDATE_FUNC_ARGS) { if (((int)(playerp->comm)&0x04) == 0x04 && (!sim->eval_move(t, playerp->legs[4], playerp->legs[5], NULL) || !sim->eval_move(t, playerp->legs[12], playerp->legs[13], NULL))) { + parts[i].vx -= 4*gvx; parts[i].vy -= 4*gvy; + playerp->accs[2] -= gvx; + playerp->accs[6] -= gvx; playerp->accs[3] -= gvy; playerp->accs[7] -= gvy; }