diff options
author | Ed Kelly <edkelly@users.sourceforge.net> | 2006-02-07 14:57:38 +0000 |
---|---|---|
committer | Ed Kelly <edkelly@users.sourceforge.net> | 2006-02-07 14:57:38 +0000 |
commit | 98f3504968411501af53a21c8b28981298fe86b1 (patch) | |
tree | afe3c5dd5e72d635ff66c811f60b2191bdfe7718 | |
parent | f711ffc1cb1e37cd9ff6c94352c5c40c48bdbd2d (diff) |
This commit was generated by cvs2svn to compensate for changes in r4562,
which included commits to RCS files with non-trunk default branches.
svn path=/trunk/externals/ekext/; revision=4563
-rw-r--r-- | zeroxpos~/zeroxpos~.c | 31 |
1 files changed, 17 insertions, 14 deletions
diff --git a/zeroxpos~/zeroxpos~.c b/zeroxpos~/zeroxpos~.c index 1c43608..adccc14 100644 --- a/zeroxpos~/zeroxpos~.c +++ b/zeroxpos~/zeroxpos~.c @@ -34,21 +34,24 @@ t_int *zeroxpos_tilde_perform(t_int *w) for(i=0;i<n;i++) { polarity = in[i] >= 0 ? 1 : -1; - if((polarity < prev || polarity > prev) && count == number && x->i_bang == 1) + while(i>0) { - x->i_ndx = i; - x->i_pol = polarity; - count++; - x->i_bang = 0; - } - if((polarity < prev || polarity > prev) && count < number) - { - count++; - } - if(i==n-1) - { - ctl->final_pol = polarity; - x->i_count = count; + if((polarity < prev || polarity > prev) && count == number && x->i_bang == 1) + { + x->i_ndx = i; + x->i_pol = polarity; + count++; + x->i_bang = 0; + } + if((polarity < prev || polarity > prev) && count < number) + { + count++; + } + if(i==n-1) + { + ctl->final_pol = polarity; + x->i_count = count; + } } prev = polarity; } |