From 6cec98e1e700477443b290c6f0931c7ce53dec99 Mon Sep 17 00:00:00 2001 From: jgray-19 Date: Thu, 31 Aug 2023 12:17:14 +0200 Subject: [PATCH] Continue restoration of _pc --- src/mad_dynmap.cpp | 2 +- src/madl_dynmap.mad | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mad_dynmap.cpp b/src/mad_dynmap.cpp index c2e0b1123..1528a2953 100644 --- a/src/mad_dynmap.cpp +++ b/src/mad_dynmap.cpp @@ -1114,7 +1114,7 @@ inline void rfcav_kickn (cflw &m, num_t lw, int is) bx = p.y*by + p.x*bx; by = byt; - p.pt -= wchg*w*by*sa; + p.pt -= wchg/m.pc*w*by*sa; } } mdump(1); diff --git a/src/madl_dynmap.mad b/src/madl_dynmap.mad index c76aa51af..865148731 100644 --- a/src/madl_dynmap.mad +++ b/src/madl_dynmap.mad @@ -1369,7 +1369,7 @@ function M.rfcav_kickn (elm, m, lw, istp) -- [KICKCAV, nmul~=0 or nbsl~=0] -- bx = y*by + x*bx by = byt - pt = pt - bdir*omega*by*sa + pt = pt - bdir*_pc*omega*by*sa end m[i].px = px