aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorN.N. <nimon@users.sourceforge.net>2010-09-10 08:51:32 +0000
committerN.N. <nimon@users.sourceforge.net>2010-09-10 08:51:32 +0000
commit143dea7d2ac5c6e33ee05be8de363e8ca5cf2d58 (patch)
tree19ffdb5860fca49e71eecea4c2bcdfcd3eb5db60
parent5812fc90d2d911fd902967fa6e06678c5b93d461 (diff)
msd modification
svn path=/trunk/externals/nusmuk/; revision=14032
-rw-r--r--msd/src/msd.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/msd/src/msd.h b/msd/src/msd.h
index a1a91f8..8b59034 100644
--- a/msd/src/msd.h
+++ b/msd/src/msd.h
@@ -311,11 +311,11 @@ public:
else { // Lmin < L < Lmax
// F[n] = k1 (L[n] - L[0])/L[n] + D1 (L[n] - L[n-1])/L[n]
if (link_type == 3) { // tabLink
- t_float k_temp = 1;
+ t_float k_temp = distance;
if (k_tabname) {
k_temp = interp_buf(distance,k_tab,l_tab);
}
- t_float d_temp = 1;
+ t_float d_temp = distance-distance_old;
if (d_tabname) {
d_temp = interp_buf(distance-distance_old,d_tab,l_tab);
}