From 98f3504968411501af53a21c8b28981298fe86b1 Mon Sep 17 00:00:00 2001 From: Ed Kelly Date: Tue, 7 Feb 2006 14:57:38 +0000 Subject: 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 --- zeroxpos~/zeroxpos~.c | 31 +++++++++++++++++-------------- 1 file changed, 17 insertions(+), 14 deletions(-) (limited to 'zeroxpos~') 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= 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; } -- cgit v1.2.1